]> code.citadel.org Git - citadel.git/blobdiff - citadel/logging.c
fixed time_t handling (have to cast it to long for printf/scanf)
[citadel.git] / citadel / logging.c
index a9022876557211d92559bad7c81b17e1b71ecb36..2b29a6bdf2a8d724042d788b46fb0839d37b48f7 100644 (file)
@@ -28,6 +28,6 @@ void rec_log(unsigned int lrtype, char *name) {
 
        time(&now);
        fp = fopen("citadel.log", "a");
-       fprintf(fp, "%ld|%u|%s\n", now, lrtype, name);
+       fprintf(fp, "%ld|%u|%s\n", (long)now, lrtype, name);
        fclose(fp);
        }