X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fparsedate.y;h=f3e94ef7654fd3b8e28d52b038318650bc119d1f;hb=d74ed6d705515afe6a84577541cd974c3336e957;hp=cf87f0e277d594b0667825fbe5bc93bbece333ee;hpb=9d62c756b928de642387c07f6ce71483175aeaba;p=citadel.git diff --git a/citadel/parsedate.y b/citadel/parsedate.y index cf87f0e27..f3e94ef76 100644 --- a/citadel/parsedate.y +++ b/citadel/parsedate.y @@ -102,7 +102,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 +730,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;