diff options
-rw-r--r-- | plugins-root/check_icmp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index 1a2a1772..6a883a82 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c | |||
@@ -410,6 +410,7 @@ main(int argc, char **argv) | |||
410 | #ifdef SO_TIMESTAMP | 410 | #ifdef SO_TIMESTAMP |
411 | int on = 1; | 411 | int on = 1; |
412 | #endif | 412 | #endif |
413 | char * opts_str = "vhVw:c:n:p:t:H:s:i:b:I:l:m:64"; | ||
413 | 414 | ||
414 | setlocale (LC_ALL, ""); | 415 | setlocale (LC_ALL, ""); |
415 | bindtextdomain (PACKAGE, LOCALEDIR); | 416 | bindtextdomain (PACKAGE, LOCALEDIR); |
@@ -462,7 +463,7 @@ main(int argc, char **argv) | |||
462 | 463 | ||
463 | /* Parse protocol arguments first */ | 464 | /* Parse protocol arguments first */ |
464 | for(i = 1; i < argc; i++) { | 465 | for(i = 1; i < argc; i++) { |
465 | while((arg = getopt(argc, argv, "vhVw:c:n:p:t:H:s:i:b:I:l:m:64")) != EOF) { | 466 | while((arg = getopt(argc, argv, opts_str)) != EOF) { |
466 | unsigned short size; | 467 | unsigned short size; |
467 | switch(arg) { | 468 | switch(arg) { |
468 | case '4': | 469 | case '4': |
@@ -484,7 +485,7 @@ main(int argc, char **argv) | |||
484 | 485 | ||
485 | /* parse the arguments */ | 486 | /* parse the arguments */ |
486 | for(i = 1; i < argc; i++) { | 487 | for(i = 1; i < argc; i++) { |
487 | while((arg = getopt(argc, argv, "vhVw:c:n:p:t:H:s:i:b:I:l:m:64")) != EOF) { | 488 | while((arg = getopt(argc, argv, opts_str)) != EOF) { |
488 | unsigned short size; | 489 | unsigned short size; |
489 | switch(arg) { | 490 | switch(arg) { |
490 | case 'v': | 491 | case 'v': |