From: Padraic Date: Fri, 22 Apr 2011 22:48:07 +0000 (-0400) Subject: Changed db_write_labeled_time_t() use to use _int for writing attribute modification... X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=6fb7d3f7b23df0a4adb0e517e9030c02db65fa30;p=cobramush.git Changed db_write_labeled_time_t() use to use _int for writing attribute modification timestamps --- 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;