warning fixes and cleanups for 64-bit machines
[citadel.git] / citadel / sysdep.c
index f1c933f8e5dc6987dc605b177e3a1597a19d8c7e..86534cf078d9b916d07e4b99f689996f825ce8a6 100644 (file)
@@ -123,7 +123,7 @@ void lprintf(int loglevel, const char *format, ...) {
                fprintf(stderr, "%04d/%02d/%02d %2d:%02d:%02d.%03ld %s",
                        tim->tm_year + 1900, tim->tm_mon + 1, tim->tm_mday,
                        tim->tm_hour, tim->tm_min, tim->tm_sec,
-                       tv.tv_usec / 1000, buf);
+                       (long)tv.tv_usec / 1000, buf);
                fflush(stderr);
        }