From: Michael Sweet Date: Wed, 19 Jul 2017 18:12:41 +0000 (-0400) Subject: Fix a build issue with `--enable-mallinfo` (Issue #5051) X-Git-Tag: v2.2.5~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13be9452da5e5d5cd3344f24dd8e07ea0f2df742;p=thirdparty%2Fcups.git Fix a build issue with `--enable-mallinfo` (Issue #5051) --- diff --git a/scheduler/main.c b/scheduler/main.c index 4a66cbcaeb..a8cd30e8ee 100644 --- a/scheduler/main.c +++ b/scheduler/main.c @@ -1752,18 +1752,6 @@ select_timeout(int fds) /* I - Number of descriptors returned */ why = "delete stale local printers"; } -#ifdef HAVE_MALLINFO - /* - * Log memory usage every minute... - */ - - if (LogLevel >= CUPSD_LOG_DEBUG && (mallinfo_time + 60) < timeout) - { - timeout = mallinfo_time + 60; - why = "display memory usage"; - } -#endif /* HAVE_MALLINFO */ - /* * Adjust from absolute to relative time. We add 1 second to the timeout since * events occur after the timeout expires, and limit the timeout to 86400