diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-31 20:03:19 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-31 20:03:19 +0000 |
commit | 3038819fef47495af2730b0d2df2a5a8475fc7bb (patch) | |
tree | 978a1706ef546a153bfc41af7f33959b4543678c /plugins/check_snmp.c | |
parent | 0ff7d99a5e75683e778943884e60a11251183f45 (diff) | |
download | monitoring-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_snmp.c')
-rw-r--r-- | plugins/check_snmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 97c86a3a..db106f26 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -578,7 +578,7 @@ process_arguments (int argc, char **argv) labels_size += 8; labels = realloc (labels, labels_size); if (labels == NULL) - die (STATE_UNKNOWN, _("Could not reallocate labels[%d]"), nlabels); + die (STATE_UNKNOWN, _("Could not reallocate labels[%d]"), (int)nlabels); } labels[nlabels - 1] = optarg; ptr = thisarg (optarg); @@ -607,7 +607,7 @@ process_arguments (int argc, char **argv) unitv_size += 8; unitv = realloc (unitv, unitv_size); if (unitv == NULL) - die (STATE_UNKNOWN, _("Could not reallocate units [%d]\n"), nunits); + die (STATE_UNKNOWN, _("Could not reallocate units [%d]\n"), (int)nunits); } unitv[nunits - 1] = optarg; ptr = thisarg (optarg); |