From 6fb7d3f7b23df0a4adb0e517e9030c02db65fa30 Mon Sep 17 00:00:00 2001 From: Padraic Date: Fri, 22 Apr 2011 18:48:07 -0400 Subject: [PATCH] Changed db_write_labeled_time_t() use to use _int for writing attribute modification timestamps --- src/db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.c b/src/db.c index c0de750..7d114a1 100644 --- 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; -- 2.30.2