From 23fd23fd1a189ad13573bd4277def21ead4b91ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 4 Jul 2015 16:23:04 +0200 Subject: api: fix type of value returned by function util_get_time_string --- src/core/wee-util.c | 2 +- src/core/wee-util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/wee-util.c b/src/core/wee-util.c index d2b6a3681..d4d4e8d8f 100644 --- a/src/core/wee-util.c +++ b/src/core/wee-util.c @@ -305,7 +305,7 @@ util_timeval_add (struct timeval *tv, long long interval) * (can be localized). */ -char * +const char * util_get_time_string (const time_t *date) { struct tm *local_time; diff --git a/src/core/wee-util.h b/src/core/wee-util.h index 0103fb842..583dfc0d9 100644 --- a/src/core/wee-util.h +++ b/src/core/wee-util.h @@ -38,7 +38,7 @@ extern void util_setrlimit (); extern int util_timeval_cmp (struct timeval *tv1, struct timeval *tv2); extern long long util_timeval_diff (struct timeval *tv1, struct timeval *tv2); extern void util_timeval_add (struct timeval *tv, long long interval); -extern char *util_get_time_string (const time_t *date); +extern const char *util_get_time_string (const time_t *date); extern int util_signal_search (const char *name); extern void util_catch_signal (int signum, void (*handler)(int)); extern int util_mkdir_home (const char *directory, int mode); -- cgit v1.2.3