@@ -224,7 +224,7 @@ static int is_date(int year, int month, int day, struct tm *tm)
224
224
return 0 ;
225
225
}
226
226
227
- static int match_multi_number (unsigned long num , char c , char * date , char * end , struct tm * tm )
227
+ static int match_multi_number (unsigned long num , char c , const char * date , char * end , struct tm * tm )
228
228
{
229
229
long num2 , num3 ;
230
230
@@ -270,7 +270,7 @@ static int match_multi_number(unsigned long num, char c, char *date, char *end,
270
270
/*
271
271
* We've seen a digit. Time? Year? Date?
272
272
*/
273
- static int match_digit (char * date , struct tm * tm , int * offset , int * tm_gmt )
273
+ static int match_digit (const char * date , struct tm * tm , int * offset , int * tm_gmt )
274
274
{
275
275
int n ;
276
276
char * end ;
@@ -361,7 +361,7 @@ static int match_digit(char *date, struct tm *tm, int *offset, int *tm_gmt)
361
361
return n ;
362
362
}
363
363
364
- static int match_tz (char * date , int * offp )
364
+ static int match_tz (const char * date , int * offp )
365
365
{
366
366
char * end ;
367
367
int offset = strtoul (date + 1 , & end , 10 );
@@ -388,7 +388,7 @@ static int match_tz(char *date, int *offp)
388
388
389
389
/* Gr. strptime is crap for this; it doesn't have a way to require RFC2822
390
390
(i.e. English) day/month names, and it doesn't work correctly with %z. */
391
- void parse_date (char * date , char * result , int maxlen )
391
+ void parse_date (const char * date , char * result , int maxlen )
392
392
{
393
393
struct tm tm ;
394
394
int offset , sign , tm_gmt ;
0 commit comments