tony2001 Tue Jul 11 12:37:00 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/date/lib parse_tz.c Log: eliminate compile warnings http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_tz.c?r1=1.20.2.6.2.3&r2=1.20.2.6.2.4&diff_format=u Index: php-src/ext/date/lib/parse_tz.c diff -u php-src/ext/date/lib/parse_tz.c:1.20.2.6.2.3 php-src/ext/date/lib/parse_tz.c:1.20.2.6.2.4 --- php-src/ext/date/lib/parse_tz.c:1.20.2.6.2.3 Tue Jun 27 21:00:03 2006 +++ php-src/ext/date/lib/parse_tz.c Tue Jul 11 12:37:00 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: parse_tz.c,v 1.20.2.6.2.3 2006/06/27 21:00:03 nlopess Exp $ */ +/* $Id: parse_tz.c,v 1.20.2.6.2.4 2006/07/11 12:37:00 tony2001 Exp $ */ #include "timelib.h" @@ -240,8 +240,8 @@ int timelib_timezone_id_is_valid(char *timezone, const timelib_tzdb *tzdb) { - unsigned char *tzf; - return (seek_to_tz_position((unsigned char**) &tzf, timezone, tzdb)); + const unsigned char *tzf; + return (seek_to_tz_position(&tzf, timezone, tzdb)); } timelib_tzinfo *timelib_parse_tzfile(char *timezone, const timelib_tzdb *tzdb) @@ -249,7 +249,7 @@ const unsigned char *tzf; timelib_tzinfo *tmp; - if (seek_to_tz_position((unsigned char**) &tzf, timezone, tzdb)) { + if (seek_to_tz_position(&tzf, timezone, tzdb)) { tmp = timelib_tzinfo_ctor(timezone); read_header((char**) &tzf, tmp);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php