- misc.h, misc.c:dissect_time(): constification
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Tue, 5 May 2015 18:46:45 +0000 (18:46 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Tue, 5 May 2015 18:46:45 +0000 (18:46 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5917 82007160-df01-0410-b94d-b575c5fd34c7

src/misc.c
src/misc.h

index a144219edf7992de4583ac5403823ec5147e68dd..3edeb39b73812b890c0bd89c51496f12b83bdbce 100644 (file)
@@ -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];
index 69b79cf3a793c85d3921b01daa450c8943f6f987..659069ca8cbf6cdb9a3b84e5b47062beaef9c19e 100644 (file)
@@ -21,5 +21,5 @@
 #ifndef MISC_H
 #define MISC_H
 
-extern char *dissect_time(time_t);
+extern const char *dissect_time(time_t);
 #endif