diff options
author | Nuno Lopes <nlopess@php.net> | 2006-06-27 19:48:01 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2006-06-27 19:48:01 +0000 |
commit | 5c97837ca201bd9b8d8f8cd4f84685f097b933cc (patch) | |
tree | 39b5a8669bd0bec53dea5ee310ae97f69ea0b897 /ext/date/lib/parse_tz.c | |
parent | 7dec2a73540771eb548389b94b4d70ad19ffd54e (diff) | |
download | php-git-5c97837ca201bd9b8d8f8cd4f84685f097b933cc.tar.gz |
add a couple of static and const keywords, to let the compiler optimize better
will MFB in a hour, or so
Diffstat (limited to 'ext/date/lib/parse_tz.c')
-rw-r--r-- | ext/date/lib/parse_tz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c index d4e6014b17..46ddb9786d 100644 --- a/ext/date/lib/parse_tz.c +++ b/ext/date/lib/parse_tz.c @@ -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); |