summaryrefslogtreecommitdiffstats
path: root/plugins/check_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_time.c')
-rw-r--r--plugins/check_time.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_time.c b/plugins/check_time.c
index 36b622f..49e7c87 100644
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
@@ -138,8 +138,8 @@ process_arguments (int argc, char **argv)
138{ 138{
139 int c; 139 int c;
140 140
141 int option_index = 0; 141 int option = 0;
142 static struct option long_options[] = { 142 static struct option longopts[] = {
143 {"hostname", required_argument, 0, 'H'}, 143 {"hostname", required_argument, 0, 'H'},
144 {"warning-variance", required_argument, 0, 'w'}, 144 {"warning-variance", required_argument, 0, 'w'},
145 {"critical-variance", required_argument, 0, 'c'}, 145 {"critical-variance", required_argument, 0, 'c'},
@@ -169,8 +169,8 @@ process_arguments (int argc, char **argv)
169 } 169 }
170 170
171 while (1) { 171 while (1) {
172 c = getopt_long (argc, argv, "hVH:w:c:W:C:p:t:", long_options, 172 c = getopt_long (argc, argv, "hVH:w:c:W:C:p:t:", longopts,
173 &option_index); 173 &option);
174 174
175 if (c == -1 || c == EOF) 175 if (c == -1 || c == EOF)
176 break; 176 break;
@@ -307,7 +307,7 @@ This plugin will check the time on the specified host.\n\n"));
307 307
308 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 308 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
309 309
310 support (); 310 printf (_(UT_SUPPORT));
311} 311}
312 312
313 313