server/housekeeping.c: fix a small compiler warning
authorArt Cancro <ajc@citadel.org>
Fri, 13 Oct 2023 15:45:30 +0000 (06:45 -0900)
committerArt Cancro <ajc@citadel.org>
Fri, 13 Oct 2023 15:45:30 +0000 (06:45 -0900)
citadel/server/housekeeping.c

index a5daff9f0ae221a0815eb2714e51e63000d40e5c..fd52f966af8e91a57f267508386726db913d7f5c 100644 (file)
@@ -71,7 +71,7 @@ void check_ref_counts(void) {
 void keep_an_eye_on_memory_usage(void) {
        static void *original_brk = NULL;
        if (!original_brk) original_brk = sbrk(0);      // Remember the original program break so we can test for leaks
-       syslog(LOG_DEBUG, "Additional memory allocated since startup: %d bytes", (sbrk(0)-original_brk));
+       syslog(LOG_DEBUG, "Additional memory allocated since startup: %ld bytes", (long)(sbrk(0)-original_brk));
 }