[MPlayer-users] libmpdemux/open.c strtol error
Steven M. Schultz
sms at 2BSD.COM
Mon Jan 6 00:53:48 CET 2003
Hi -
open.c: In function `dvd_parse_chapter_range':
open.c:568: warning: passing arg 2 of `strtol' from incompatible pointer type
gmake[1]: *** No rule to make target `vcd_read_bincue.h', needed by `stream.o'. Stop.
gmake[1]: Leaving directory `/packages/MPlayer-cvs/libmpdemux'
gmake: *** [libmpdemux/libmpdemux.a] Error 2
The problem is that strtol() is declared like this:
long strtol(const char *nptr, char **endptr, int base);
in stdlib.h but the usage is passing a pointer to a const char *
dvd_chapter = strtol(range, &s, 10);
and 's' is "const char *s".
Is removing the 'const' the proper fix in this case?
Cheers,
Steven Schultz
sms at 2bsd.com
More information about the MPlayer-users
mailing list