Changed db_write_labeled_time_t() use to use _int for writing attribute modification...
authorPadraic <padraic@silvona.com>
Fri, 22 Apr 2011 22:48:07 +0000 (18:48 -0400)
committerRick L Bird <nveid@yahoo.com>
Fri, 22 Apr 2011 22:50:58 +0000 (18:50 -0400)
src/db.c

index c0de75071c257203eaee8d05bf87ac4477bcac06..7d114a1dec4a7e0ea27cb53006a5357e087fa36b 100644 (file)
--- a/src/db.c
+++ b/src/db.c
@@ -648,7 +648,7 @@ db_write_labeled_int(PENNFILE * f, char const *label, int value)
 void
 db_write_labeled_time_t(PENNFILE * f, char const *label, time_t value)
 {
-  penn_fprintf(f, "%s %zu\n", label, value);
+  penn_fprintf(f, "%s %d\n", label, (int) value);
 }
 
 void
@@ -763,7 +763,7 @@ db_write_object(PENNFILE *f, dbref i)
     db_write_labeled_int(f, "     derefs", chunk_derefs(AL_WLock(list)));
     db_write_labeled_string(f, "  readlock", unparse_boolexp(GOD, AL_RLock(list), UB_DBREF));
     db_write_labeled_int(f, "     derefs", chunk_derefs(AL_RLock(list)));
-    db_write_labeled_time_t(f, "  modtime", AL_MODTIME(list));
+    db_write_labeled_int(f, "  modtime", (int) AL_MODTIME(list));
     db_write_labeled_string(f, "  value", atr_value(list));
   }
   return 0;