X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fparsedate.y;h=d6022d365d3d22965b2411e8a4939c2a1ee56e7c;hb=f0e4b5bde1396c4282a085d3e2af12ce9c0cf223;hp=cf87f0e277d594b0667825fbe5bc93bbece333ee;hpb=9d62c756b928de642387c07f6ce71483175aeaba;p=citadel.git diff --git a/citadel/parsedate.y b/citadel/parsedate.y index cf87f0e27..d6022d365 100644 --- a/citadel/parsedate.y +++ b/citadel/parsedate.y @@ -7,7 +7,7 @@ ** and Jim Berets in August, 1990. ** Further revised (removed obsolete constructs and cleaned up timezone ** names) in August, 1991, by Rich. Paul Eggert -** helped in September, 1992. Art Cancro cleaned +** helped in September, 1992. Art Cancro cleaned ** it up for ANSI C in December, 1999. ** ** This grammar has six shift/reduce conflicts. @@ -25,18 +25,7 @@ #include #include #include - -#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif - +#include #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include @@ -102,7 +91,7 @@ typedef enum _MERIDIAN { ** union, but this is more efficient. (This routine predates the ** yacc %union construct.) */ -static char *yyInput; +static const char *yyInput; static DSTMODE yyDSTmode; static int yyHaveDate; static int yyHaveRel; @@ -730,12 +719,12 @@ date_lex(void) time_t -parsedate(char *p) +parsedate(const char *p) { extern int date_parse(void); time_t Start; - yyInput = p; + yyInput = p; /* well, its supposed to be const... */ yyYear = 0; yyMonth = 0;