1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

add_date_to_string: Let last two parameters point to const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-03-20 09:21:41 +02:00 committed by Kalle Olavi Niemitalo
parent 8c66e34323
commit 8b8ff255bd
2 changed files with 5 additions and 2 deletions

View File

@ -240,7 +240,8 @@ add_timeval_to_string(struct string *string, timeval_T *timeval)
#ifdef HAVE_STRFTIME
struct string *
add_date_to_string(struct string *string, unsigned char *fmt, time_t *date)
add_date_to_string(struct string *string, const unsigned char *fmt,
const time_t *date)
{
unsigned char buffer[MAX_STR_LEN];
time_t when_time = date ? *date : time(NULL);

View File

@ -53,7 +53,9 @@ struct string *add_timeval_to_string(struct string *string, timeval_T *timeval);
#ifdef HAVE_STRFTIME
/* Uses strftime() to add @fmt time format to @string. If @time is NULL
* time(NULL) will be used. */
struct string *add_date_to_string(struct string *string, unsigned char *format, time_t *time);
struct string *add_date_to_string(struct string *string,
const unsigned char *format,
const time_t *time);
#endif