[Nagiosplug-checkins] nagiosplug/plugins check_ntp.c,1.14,1.15

Holger Weiss hweiss at users.sourceforge.net
Sat Mar 31 19:25:45 CEST 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1096

Modified Files:
	check_ntp.c 
Log Message:
Remove the '-O' option, as it's ignored.


Index: check_ntp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ntp.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- check_ntp.c	29 Mar 2007 10:25:01 -0000	1.14
+++ check_ntp.c	31 Mar 2007 17:25:43 -0000	1.15
@@ -47,7 +47,6 @@
 
 static char *server_address=NULL;
 static int verbose=0;
-static int zero_offset_bad=0;
 static double owarn=60;
 static double ocrit=120;
 static short do_jitter=0;
@@ -628,7 +627,6 @@
 		{"use-ipv6", no_argument, 0, '6'},
 		{"warning", required_argument, 0, 'w'},
 		{"critical", required_argument, 0, 'c'},
-		{"zero-offset", no_argument, 0, 'O'},
 		{"jwarn", required_argument, 0, 'j'},
 		{"jcrit", required_argument, 0, 'k'},
 		{"timeout", required_argument, 0, 't'},
@@ -641,7 +639,7 @@
 		usage ("\n");
 
 	while (1) {
-		c = getopt_long (argc, argv, "Vhv46w:c:Oj:k:t:H:", longopts, &option);
+		c = getopt_long (argc, argv, "Vhv46w:c:j:k:t:H:", longopts, &option);
 		if (c == -1 || c == EOF || c == 1)
 			break;
 
@@ -679,9 +677,6 @@
 		case 't':
 			socket_timeout=atoi(optarg);
 			break;
-		case 'O':
-			zero_offset_bad=1;
-			break;
 		case '4':
 			address_family = AF_INET;
 			break;
@@ -816,5 +811,5 @@
 print_usage(void)
 {
   printf (_("Usage:"));
-  printf("%s -H <host> [-O] [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\n", progname);
+  printf("%s -H <host> [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\n", progname);
 }





More information about the Commits mailing list