From 18f2e035b48f71863bd76920c7ad4dcbda3c42be Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 5 May 2015 18:47:07 +0000 Subject: [PATCH] - misc.h, misc.c:dissect_time(): constification git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5918 82007160-df01-0410-b94d-b575c5fd34c7 --- src/misc.c | 2 +- src/misc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc.c b/src/misc.c index a144219..3edeb39 100644 --- a/src/misc.c +++ b/src/misc.c @@ -30,7 +30,7 @@ * Split a time_t into an English-language explanation of how * much time it represents, e.g. "2 hours 45 minutes 8 seconds" */ -char * +const char * dissect_time(time_t time) { static char buf[64]; diff --git a/src/misc.h b/src/misc.h index 69b79cf..659069c 100644 --- a/src/misc.h +++ b/src/misc.h @@ -21,5 +21,5 @@ #ifndef MISC_H #define MISC_H -extern char *dissect_time(time_t); +extern const char *dissect_time(time_t); #endif -- 2.30.2