[Nagiosplug-checkins] nagiosplug/plugins check_dig.c,1.43,1.44

Ton Voon tonvoon at users.sourceforge.net
Mon Jul 3 10:03:39 CEST 2006


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

Modified Files:
	check_dig.c 
Log Message:
Fixed -p getopt call (Allan Bennett - 1511650)


Index: check_dig.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dig.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- check_dig.c	14 Jun 2006 18:48:59 -0000	1.43
+++ check_dig.c	3 Jul 2006 08:03:37 -0000	1.44
@@ -184,6 +184,7 @@
     {"help", no_argument, 0, 'h'},
     {"record_type", required_argument, 0, 'T'},
     {"expected_address", required_argument, 0, 'a'},
+    {"port", required_argument, 0, 'p'},
     {0, 0, 0, 0}
   };
 
@@ -191,7 +192,7 @@
     return ERROR;
 
   while (1) {
-    c = getopt_long (argc, argv, "hVvt:l:H:w:c:T:a:", longopts, &option);
+    c = getopt_long (argc, argv, "hVvt:l:H:w:c:T:p:a:", longopts, &option);
 
     if (c == -1 || c == EOF)
       break;
@@ -300,7 +301,7 @@
 
   printf (_(UT_HELP_VRSN));
 
-  printf (_(UT_HOST_PORT), 'P', myport);
+  printf (_(UT_HOST_PORT), 'p', myport);
 
   printf (" %s\n","-l, --lookup=STRING");
   printf ("    %s\n",_("machine name to lookup"));





More information about the Commits mailing list