summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index de019bac..4e447a45 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -418,10 +418,10 @@ process_arguments (int argc, char **argv)
418 while (1) { 418 while (1) {
419#ifdef HAVE_GETOPT_H 419#ifdef HAVE_GETOPT_H
420 c = 420 c =
421 getopt_long (argc, argv, "+?hVt:c:w:H:C:o:e:E:d:D:s:R:r:l:u:p:", 421 getopt_long (argc, argv, "hVt:c:w:H:C:o:e:E:d:D:s:R:r:l:u:p:",
422 long_options, &option_index); 422 long_options, &option_index);
423#else 423#else
424 c = getopt (argc, argv, "+?hVt:c:w:H:C:o:e:E:d:D:s:R:r:l:u:p:"); 424 c = getopt (argc, argv, "hVt:c:w:H:C:o:e:E:d:D:s:R:r:l:u:p:");
425#endif 425#endif
426 426
427 if (c == -1 || c == EOF) 427 if (c == -1 || c == EOF)
@@ -429,7 +429,7 @@ process_arguments (int argc, char **argv)
429 429
430 switch (c) { 430 switch (c) {
431 case '?': /* usage */ 431 case '?': /* usage */
432 usage2 ("Unknown argument", optarg); 432 usage3 ("Unknown argument", optopt);
433 case 'h': /* help */ 433 case 'h': /* help */
434 print_help (); 434 print_help ();
435 exit (STATE_OK); 435 exit (STATE_OK);