From: Wilfried Goesgens Date: Sun, 5 Jun 2011 15:28:24 +0000 (+0000) Subject: * make it const baby. X-Git-Tag: v8.11~1048 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;ds=sidebyside;h=ac1d0ba8d495ad17d5837c292ee5d49073510930;p=citadel.git * make it const baby. --- diff --git a/citadel/parsedate.h b/citadel/parsedate.h index 55b7bc5ce..345e07100 100644 --- a/citadel/parsedate.h +++ b/citadel/parsedate.h @@ -1,2 +1,2 @@ -time_t parsedate(char *); +time_t parsedate(const char *); 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;