The "tm" and "date" field are not modified, they can be const instead
of forcing their callers to use vars.
* without using sprintf. return a pointer to the last char written (\0) or
* NULL if there isn't enough space.
*/
-char *date2str_log(char *dest, struct tm *tm, struct timeval *date, size_t size);
+char *date2str_log(char *dest, const struct tm *tm, const struct timeval *date, size_t size);
/* Return the GMT offset for a specific local time.
* Both t and tm must represent the same time.
* without using sprintf. return a pointer to the last char written (\0) or
* NULL if there isn't enough space.
*/
-char *date2str_log(char *dst, struct tm *tm, struct timeval *date, size_t size)
+char *date2str_log(char *dst, const struct tm *tm, const struct timeval *date, size_t size)
{
if (size < 25) /* the size is fixed: 24 chars + \0 */