diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 59e8ea0ca42e8491ff8fa224fa27b53800de3c08..b0aa1897821ebfcf1e5e706eed80b505b2a7297c 100644 (file)
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
int c;
char *p1, *p2;
- int option_index = 0;
- static struct option long_options[] = {
+ int option = 0;
+ static struct option longopts[] = {
{"version", no_argument, 0, 'V'},
{"help", no_argument, 0, 'h'},
{"verbose", no_argument, 0, 'v'},
strcpy (argv[c], "-t");
while (1) {
- c = getopt_long (argc, argv, "Vvh1246ft:H:O:p:i:u:l:C:n:s:", long_options,
- &option_index);
+ c = getopt_long (argc, argv, "Vvh1246ft:H:O:p:i:u:l:C:n:s:", longopts,
+ &option);
if (c == -1 || c == EOF)
break;