diff --git a/plugins/check_udp.c b/plugins/check_udp.c
index bd5de5864d7c97e4d0fa6a57adcb347de41a3ab5..5aaf3a7924240a26fcf4a390878837d68944194c 100644 (file)
--- a/plugins/check_udp.c
+++ b/plugins/check_udp.c
{
int c;
- int option_index = 0;
- static struct option long_options[] = {
+ int option = 0;
+ static struct option longopts[] = {
{"hostname", required_argument, 0, 'H'},
{"critical", required_argument, 0, 'c'},
{"warning", required_argument, 0, 'w'},
}
while (1) {
- c = getopt_long (argc, argv, "+hVvH:e:s:c:w:t:p:", long_options, &option_index);
+ c = getopt_long (argc, argv, "+hVvH:e:s:c:w:t:p:", longopts, &option);
if (c == -1 || c == EOF || c == 1)
break;