]> 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 f485d82fadcfbdad4fcdd496876ffb226af2e26b..0f5eef2116fd2f6fe7e4c60521225d9e172eb9af 100644 (file)
@@ -3,6 +3,7 @@
  * $Id$
  */
 
+#include "sysdep.h"
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
@@ -12,7 +13,6 @@
 #include <ctype.h>
 #include <string.h>
 #include <errno.h>
-#include <pthread.h>
 #include <syslog.h>
 #include "citadel.h"
 #include "server.h"
@@ -25,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);
        }