]> granicus.if.org Git - php/commitdiff
'const' is problematic in code in the final section of a Bison file (Bison defines
authorZeev Suraski <zeev@php.net>
Tue, 22 Aug 2000 20:59:26 +0000 (20:59 +0000)
committerZeev Suraski <zeev@php.net>
Tue, 22 Aug 2000 20:59:26 +0000 (20:59 +0000)
it away)

ext/standard/parsedate.y

index 875d3483350cc98bcfd6dc789fab212600601029..e048d24543fbc366f980d61a5daec630cde72f88 100644 (file)
@@ -452,7 +452,7 @@ o_merid     : /* NULL */
 
 %%
 
-time_t get_date (const char *p, const time_t *now);
+time_t get_date (char *p, time_t *now);
 
 #ifndef PHP_WIN32
 extern struct tm       *gmtime();
@@ -903,8 +903,7 @@ difftm (struct tm *a, struct tm *b)
          + (a->tm_sec - b->tm_sec));
 }
 
-time_t
-parse_date (const char *p, const time_t *now)
+time_t parse_date(char *p, time_t *now)
 {
   struct tm tm, tm0, *tmp;
   time_t Start;