fix formating; use define for size_t arguments.
[citadel.git] / citadel / modules / network / serv_netspool.c
index ca0d6181e3309362dd4c436cb16a1ec6664f8fb3..61ccbc992bdbd0847b4d5b0ba538c60f13377dfb 100644 (file)
@@ -233,7 +233,7 @@ void CalcListID(SpoolControl *sc)
        assoc_file_name(filename, sizeof filename, &sc->room, ctdl_info_dir);
        fd = open(filename, 0);
 
-       if (fd != 0) {
+       if (fd > 0) {
                struct stat stbuf;
 
                if ((fstat(fd, &stbuf) == 0) &&
@@ -924,7 +924,7 @@ void network_consolidate_spoolout(HashList *working_ignetcfg, HashList *the_netm
                        if (err == NULL) {
                                unlink(filename);
                                QN_syslog(LOG_DEBUG,
-                                         "Spoolfile %s now %ld k\n",
+                                         "Spoolfile %s now "SIZE_T_FMT" k\n",
                                          spooloutfilename,
                                          (dsize + fsize)/1024
                                        );