]> granicus.if.org Git - php/commitdiff
eliminate compile warnings
authorAntony Dovgal <tony2001@php.net>
Tue, 11 Jul 2006 12:37:00 +0000 (12:37 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 11 Jul 2006 12:37:00 +0000 (12:37 +0000)
ext/date/lib/parse_tz.c

index d4e6014b179683d167aefcdc760124b79fe71288..46ddb9786da97d24de7a685662fe5d114814c345 100644 (file)
@@ -240,8 +240,8 @@ const timelib_tzdb_index_entry *timelib_timezone_builtin_identifiers_list(int *c
 
 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 @@ timelib_tzinfo *timelib_parse_tzfile(char *timezone, const timelib_tzdb *tzdb)
        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);