summaryrefslogtreecommitdiffstats
path: root/plugins/check_nagios.c
diff options
context:
space:
mode:
authorM. Sean Finney <seanius@users.sourceforge.net>2005-10-31 20:03:19 +0000
committerM. Sean Finney <seanius@users.sourceforge.net>2005-10-31 20:03:19 +0000
commit3038819fef47495af2730b0d2df2a5a8475fc7bb (patch)
tree978a1706ef546a153bfc41af7f33959b4543678c /plugins/check_nagios.c
parent0ff7d99a5e75683e778943884e60a11251183f45 (diff)
downloadmonitoring-plugins-3038819fef47495af2730b0d2df2a5a8475fc7bb.tar.gz
code cleanups, largely resulting from turning on -Wall. mostly
unused variables and explicit casting issues, but there were a couple gotchas in there too. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1267 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_nagios.c')
-rw-r--r--plugins/check_nagios.c4
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)
55 int procrss = 0; 55 int procrss = 0;
56 float procpcpu = 0; 56 float procpcpu = 0;
57 char procstat[8]; 57 char procstat[8];
58 /* procetime is unused in most configurations, but may be in PS_VAR_LIST 58#ifdef PS_USES_PROCETIME
59 * so it must be here in spite of it producing compiler warnings */
60 char procetime[MAX_INPUT_BUFFER]; 59 char procetime[MAX_INPUT_BUFFER];
60#endif /* PS_USES_PROCETIME */
61 char procprog[MAX_INPUT_BUFFER]; 61 char procprog[MAX_INPUT_BUFFER];
62 char *procargs; 62 char *procargs;
63 int pos, cols; 63 int pos, cols;