summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorM. Sean Finney <seanius@users.sourceforge.net>2005-10-31 20:03:19 (GMT)
committerM. Sean Finney <seanius@users.sourceforge.net>2005-10-31 20:03:19 (GMT)
commit3038819fef47495af2730b0d2df2a5a8475fc7bb (patch)
tree978a1706ef546a153bfc41af7f33959b4543678c /plugins/check_snmp.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_snmp.c')
-rw-r--r--plugins/check_snmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 97c86a3..db106f2 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -578,7 +578,7 @@ process_arguments (int argc, char **argv)
578 labels_size += 8; 578 labels_size += 8;
579 labels = realloc (labels, labels_size); 579 labels = realloc (labels, labels_size);
580 if (labels == NULL) 580 if (labels == NULL)
581 die (STATE_UNKNOWN, _("Could not reallocate labels[%d]"), nlabels); 581 die (STATE_UNKNOWN, _("Could not reallocate labels[%d]"), (int)nlabels);
582 } 582 }
583 labels[nlabels - 1] = optarg; 583 labels[nlabels - 1] = optarg;
584 ptr = thisarg (optarg); 584 ptr = thisarg (optarg);
@@ -607,7 +607,7 @@ process_arguments (int argc, char **argv)
607 unitv_size += 8; 607 unitv_size += 8;
608 unitv = realloc (unitv, unitv_size); 608 unitv = realloc (unitv, unitv_size);
609 if (unitv == NULL) 609 if (unitv == NULL)
610 die (STATE_UNKNOWN, _("Could not reallocate units [%d]\n"), nunits); 610 die (STATE_UNKNOWN, _("Could not reallocate units [%d]\n"), (int)nunits);
611 } 611 }
612 unitv[nunits - 1] = optarg; 612 unitv[nunits - 1] = optarg;
613 ptr = thisarg (optarg); 613 ptr = thisarg (optarg);