projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa2dc95
)
server/housekeeping.c: fix a small compiler warning
author
Art Cancro
<ajc@citadel.org>
Fri, 13 Oct 2023 15:45:30 +0000
(06:45 -0900)
committer
Art Cancro
<ajc@citadel.org>
Fri, 13 Oct 2023 15:45:30 +0000
(06:45 -0900)
citadel/server/housekeeping.c
patch
|
blob
|
history
diff --git
a/citadel/server/housekeeping.c
b/citadel/server/housekeeping.c
index a5daff9f0ae221a0815eb2714e51e63000d40e5c..fd52f966af8e91a57f267508386726db913d7f5c 100644
(file)
--- a/
citadel/server/housekeeping.c
+++ b/
citadel/server/housekeeping.c
@@
-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));
}