summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2006-05-24 09:05:35 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2006-05-24 09:05:35 (GMT)
commitf7bb6d16e6732f04d8b9de081e23be0c5bb02857 (patch)
tree566051873830c0b03d90a1ee74179a617413ea49 /plugins/check_snmp.c
parent52ea6f2a8d757329eb9e57f7ff6f08e79fd584bb (diff)
downloadmonitoring-plugins-f7bb6d16e6732f04d8b9de081e23be0c5bb02857.tar.gz
Variables need to be declared at top of code for better portability
(Gerhard Lausser) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1399 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index db106f2..b53fb11 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -141,6 +141,7 @@ main (int argc, char **argv)
141 char *p2 = NULL; 141 char *p2 = NULL;
142 char *show = NULL; 142 char *show = NULL;
143 char type[8]; 143 char type[8];
144 char *str[MAX_INPUT_BUFFER];
144 145
145 setlocale (LC_ALL, ""); 146 setlocale (LC_ALL, "");
146 bindtextdomain (PACKAGE, LOCALEDIR); 147 bindtextdomain (PACKAGE, LOCALEDIR);
@@ -338,7 +339,6 @@ main (int argc, char **argv)
338 339
339 i++; 340 i++;
340 341
341 char *str[MAX_INPUT_BUFFER];
342 asprintf(str, "=%s%s;;;; ", show, type ? type : ""); 342 asprintf(str, "=%s%s;;;; ", show, type ? type : "");
343 strcat(perfstr, *str); 343 strcat(perfstr, *str);
344 344