projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3bd9c3
)
processes plugin: Fix compilation when ps_delay() not used.
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Sun, 10 Dec 2017 15:06:00 +0000
(22:06 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Sun, 10 Dec 2017 15:09:52 +0000
(22:09 +0700)
Remove unused ps_delay() function when compiled without libtaskstats/libmnl
Closes: #2609
src/processes.c
patch
|
blob
|
history
diff --git
a/src/processes.c
b/src/processes.c
index
738a6de
..
7c7b4b4
100644
(file)
--- 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) {