]> code.citadel.org Git - citadel.git/blobdiff - citadel/logging.c
* Removed all of the thread cancellation cruft that is no longer necessary
[citadel.git] / citadel / logging.c
index a9022876557211d92559bad7c81b17e1b71ecb36..0f5eef2116fd2f6fe7e4c60521225d9e172eb9af 100644 (file)
@@ -13,9 +13,6 @@
 #include <ctype.h>
 #include <string.h>
 #include <errno.h>
-#ifdef HAVE_PTHREAD_H
-#include <pthread.h>
-#endif
 #include <syslog.h>
 #include "citadel.h"
 #include "server.h"
@@ -28,6 +25,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);
        }