diff options
Diffstat (limited to 'plugins/check_nagios.c')
-rw-r--r-- | plugins/check_nagios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index 0ae488ff..ab9c877b 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c @@ -55,9 +55,9 @@ main (int argc, char **argv) int procrss = 0; float procpcpu = 0; char procstat[8]; - /* procetime is unused in most configurations, but may be in PS_VAR_LIST - * so it must be here in spite of it producing compiler warnings */ +#ifdef PS_USES_PROCETIME char procetime[MAX_INPUT_BUFFER]; +#endif /* PS_USES_PROCETIME */ char procprog[MAX_INPUT_BUFFER]; char *procargs; int pos, cols; |