Unparse time_t as unsigned int
authorAri Johnson <ari@theari.com>
Fri, 7 Nov 2008 21:02:00 +0000 (21:02 +0000)
committerCobraMUSH <cobramush@nveid.com>
Tue, 4 Mar 2008 21:22:14 +0000 (21:22 +0000)
(cherry picked from commit 746761bf5e30c7d0657b833dc09f999b0a9e1341)

src/funtime.c

index 3c6439172545eaa2ce598b0329db9c680af5f7b0..67c8625a119b5614d215d8a9a32bb91d524fcf39 100644 (file)
@@ -151,7 +151,7 @@ FUNCTION(fun_time)
 /* ARGSUSED */
 FUNCTION(fun_secs)
 {
-  safe_integer(mudtime, buff, bp);
+  safe_uinteger(mudtime, buff, bp);
 }
 
 /* ARGSUSED */
@@ -463,9 +463,9 @@ FUNCTION(fun_convtime)
 #endif
     ) {
 #ifdef SUN_OS
-    safe_integer(timelocal(&ttm), buff, bp);
+    safe_uinteger(timelocal(&ttm), buff, bp);
 #else
-    safe_integer(mktime(&ttm), buff, bp);
+    safe_uinteger(mktime(&ttm), buff, bp);
 #endif                         /* SUN_OS */
   } else {
     safe_str("-1", buff, bp);