* make it const baby.
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 5 Jun 2011 15:28:24 +0000 (15:28 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 5 Jun 2011 15:28:24 +0000 (15:28 +0000)
citadel/parsedate.h
citadel/parsedate.y

index 55b7bc5ce23b95f1690196e7e980cb6d39c65752..345e0710075ef31ebbb93485c39a745094325245 100644 (file)
@@ -1,2 +1,2 @@
 
-time_t parsedate(char *);
+time_t parsedate(const char *);
index cf87f0e277d594b0667825fbe5bc93bbece333ee..f3e94ef7654fd3b8e28d52b038318650bc119d1f 100644 (file)
@@ -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;