summaryrefslogtreecommitdiffstats
path: root/plugins/check_smtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_smtp.c')
-rw-r--r--plugins/check_smtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index c4e427a..41ed5f3 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -183,8 +183,8 @@ process_arguments (int argc, char **argv)
183{ 183{
184 int c; 184 int c;
185 185
186 int option_index = 0; 186 int option = 0;
187 static struct option long_options[] = { 187 static struct option longopts[] = {
188 {"hostname", required_argument, 0, 'H'}, 188 {"hostname", required_argument, 0, 'H'},
189 {"expect", required_argument, 0, 'e'}, 189 {"expect", required_argument, 0, 'e'},
190 {"critical", required_argument, 0, 'c'}, 190 {"critical", required_argument, 0, 'c'},
@@ -216,7 +216,7 @@ process_arguments (int argc, char **argv)
216 216
217 while (1) { 217 while (1) {
218 c = getopt_long (argc, argv, "+hVv46t:p:f:e:c:w:H:C:", 218 c = getopt_long (argc, argv, "+hVv46t:p:f:e:c:w:H:C:",
219 long_options, &option_index); 219 longopts, &option);
220 220
221 if (c == -1 || c == EOF) 221 if (c == -1 || c == EOF)
222 break; 222 break;