Unparse time_t as unsigned int
authorAri Johnson <ari@theari.com>
Fri, 7 Nov 2008 21:02:00 +0000 (21:02 +0000)
committerAri Johnson <ari@theari.com>
Fri, 7 Nov 2008 21:02:00 +0000 (21:02 +0000)
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);