summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92a9e9a)
raw | patch | inline | side by side (parent: 92a9e9a)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Sat, 9 Nov 2002 04:21:51 +0000 (04:21 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Sat, 9 Nov 2002 04:21:51 +0000 (04:21 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@180 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_snmp.c | patch | blob | history |
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 4e447a451839f1be81eeae0205c30052b31ae786..6f187113b79e61afe993b708ebf660f65907afe7 100644 (file)
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
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;
if (units == NULL)
asprintf (&units, "");
- if (port == NULL)
- asprintf (&port, DEFAULT_PORT);
-
return OK;
}
\f