diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-04 16:23:04 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-04 16:23:04 +0200 |
commit | 23fd23fd1a189ad13573bd4277def21ead4b91ed (patch) | |
tree | 7b72ba5d41bd40775f315a1dafdb90ec724b6f1e /src/core | |
parent | e8615c169169e735254d9273f2e4bea31b83e898 (diff) | |
download | weechat-23fd23fd1a189ad13573bd4277def21ead4b91ed.zip |
api: fix type of value returned by function util_get_time_string
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-util.c | 2 | ||||
-rw-r--r-- | src/core/wee-util.h | 2 |
2 files changed, 2 insertions, 2 deletions
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); |