mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-25 03:43:26 -04:00
cleaner handling of DEFAULT_PORT
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@180 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
92a9e9a043
commit
62291c1854
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue