diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-10 06:53:22 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-10 06:53:22 (GMT) |
commit | f4f92be60c94fd4e0dd4b2b4b3101543eedb706a (patch) | |
tree | 28d25bd0ab624d82435823c940a186370947ad4d /plugins/check_smtp.c | |
parent | cbf702f51f839af5a8e9c66bdae7d6a3dc363ace (diff) | |
download | monitoring-plugins-f4f92be60c94fd4e0dd4b2b4b3101543eedb706a.tar.gz |
the last round of pedantic compiler warnings
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@676 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_smtp.c')
-rw-r--r-- | plugins/check_smtp.c | 6 |
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; |