tony2001 Tue Jul 11 12:37:26 2006 UTC
Modified files:
/php-src/ext/date/lib parse_tz.c
Log:
MFB: eliminate compile warnings
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_tz.c?r1=1.27&r2=1.28&diff_format=u
Index: php-src/ext/date/lib/parse_tz.c
diff -u php-src/ext/date/lib/parse_tz.c:1.27
php-src/ext/date/lib/parse_tz.c:1.28
--- php-src/ext/date/lib/parse_tz.c:1.27 Sun May 14 17:30:26 2006
+++ php-src/ext/date/lib/parse_tz.c Tue Jul 11 12:37:26 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: parse_tz.c,v 1.27 2006/05/14 17:30:26 derick Exp $ */
+/* $Id: parse_tz.c,v 1.28 2006/07/11 12:37:26 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