aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_dig.c
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-07-03 08:03:37 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-07-03 08:03:37 +0000
commit46894f211e8c3405febb03b3e455e345c93f64d5 (patch)
tree33b1e93f9ae58f4eb6fac136e25ba8ea5d78c12e /plugins/check_dig.c
parentc46acd0f4b57def6176e2041eb44a02498f6b095 (diff)
downloadmonitoring-plugins-46894f211e8c3405febb03b3e455e345c93f64d5.tar.gz
Fixed -p getopt call (Allan Bennett - 1511650)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1439 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r--plugins/check_dig.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index e2a66067..68b9a23b 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -184,6 +184,7 @@ process_arguments (int argc, char **argv)
{"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 @@ process_arguments (int argc, char **argv)
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 @@ print_help (void)
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"));