From: Pavel Rochnyack Date: Sun, 10 Dec 2017 15:06:00 +0000 (+0700) Subject: processes plugin: Fix compilation when ps_delay() not used. X-Git-Tag: collectd-5.9.0~328^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d9a6745c1bf813cdc86fc48b9c89180aaa42438;p=thirdparty%2Fcollectd.git processes plugin: Fix compilation when ps_delay() not used. Remove unused ps_delay() function when compiled without libtaskstats/libmnl Closes: #2609 --- diff --git a/src/processes.c b/src/processes.c index 738a6de18..7c7b4b4b0 100644 --- a/src/processes.c +++ b/src/processes.c @@ -1248,10 +1248,6 @@ static int ps_delay(process_entry_t *ps) { return 0; } -#else -static int ps_delay(__attribute__((unused)) process_entry_t *unused) { - return -1; -} #endif static void ps_fill_details(const procstat_t *ps, process_entry_t *entry) {