diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index fdded583b70ea06c1163f7227408f4619a3449e3..26709a7d91e4fd7a5cb7fc49fc7789885d0348ef 100644 (file)
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
{
int c;
- int option_index = 0;
- static struct option long_options[] = {
+ int option = 0;
+ static struct option longopts[] = {
{"help", no_argument, 0, 'h'},
{"version", no_argument, 0, 'V'},
{"host", required_argument, 0, 'H'},
strcpy (argv[c], "-t");
while (1) {
- c = getopt_long (argc, argv, "+Vhv46t:H:p:", long_options, &option_index);
+ c = getopt_long (argc, argv, "+Vhv46t:H:p:", longopts, &option);
if (c == -1 || c == EOF)
break;