From 62291c185489730733ac0902484bf7d385da0806 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Sat, 9 Nov 2002 04:21:51 +0000 Subject: [PATCH] cleaner handling of DEFAULT_PORT git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@180 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_snmp.c | 5 +---- 1 file changed, 1 insertion(+), 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; char *oid = ""; char *label = NULL; char *units = NULL; -char *port = NULL; +char *port = DEFAULT_PORT; char string_value[MAX_INPUT_BUFFER] = ""; char **labels = NULL; char **unitv = NULL; @@ -647,9 +647,6 @@ validate_arguments () if (units == NULL) asprintf (&units, ""); - if (port == NULL) - asprintf (&port, DEFAULT_PORT); - return OK; } -- 2.30.2