summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-09 04:21:51 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-09 04:21:51 (GMT)
commit62291c185489730733ac0902484bf7d385da0806 (patch)
treed0e5073091ca4c8842411a6039311313c9180116 /plugins/check_snmp.c
parent92a9e9a0439a0afb2477d6189ea09cfddaea1d2c (diff)
downloadmonitoring-plugins-62291c185489730733ac0902484bf7d385da0806.tar.gz
cleaner handling of DEFAULT_PORT
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@180 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 4e447a4..6f18711 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -158,7 +158,7 @@ char *community = NULL;
158char *oid = ""; 158char *oid = "";
159char *label = NULL; 159char *label = NULL;
160char *units = NULL; 160char *units = NULL;
161char *port = NULL; 161char *port = DEFAULT_PORT;
162char string_value[MAX_INPUT_BUFFER] = ""; 162char string_value[MAX_INPUT_BUFFER] = "";
163char **labels = NULL; 163char **labels = NULL;
164char **unitv = NULL; 164char **unitv = NULL;
@@ -647,9 +647,6 @@ validate_arguments ()
647 if (units == NULL) 647 if (units == NULL)
648 asprintf (&units, ""); 648 asprintf (&units, "");
649 649
650 if (port == NULL)
651 asprintf (&port, DEFAULT_PORT);
652
653 return OK; 650 return OK;
654} 651}
655 652