summaryrefslogtreecommitdiffstats
path: root/plugins/check_time.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-10 06:53:22 +0000
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-10 06:53:22 +0000
commitf4f92be60c94fd4e0dd4b2b4b3101543eedb706a (patch)
tree28d25bd0ab624d82435823c940a186370947ad4d /plugins/check_time.c
parentcbf702f51f839af5a8e9c66bdae7d6a3dc363ace (diff)
downloadmonitoring-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_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 36b622fb..49e7c87d 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