diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-07-03 08:03:37 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-07-03 08:03:37 (GMT) |
commit | 46894f211e8c3405febb03b3e455e345c93f64d5 (patch) | |
tree | 33b1e93f9ae58f4eb6fac136e25ba8ea5d78c12e | |
parent | c46acd0f4b57def6176e2041eb44a02498f6b095 (diff) | |
download | monitoring-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
-rw-r--r-- | plugins/check_dig.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index e2a6606..68b9a23 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c | |||
@@ -184,6 +184,7 @@ process_arguments (int argc, char **argv) | |||
184 | {"help", no_argument, 0, 'h'}, | 184 | {"help", no_argument, 0, 'h'}, |
185 | {"record_type", required_argument, 0, 'T'}, | 185 | {"record_type", required_argument, 0, 'T'}, |
186 | {"expected_address", required_argument, 0, 'a'}, | 186 | {"expected_address", required_argument, 0, 'a'}, |
187 | {"port", required_argument, 0, 'p'}, | ||
187 | {0, 0, 0, 0} | 188 | {0, 0, 0, 0} |
188 | }; | 189 | }; |
189 | 190 | ||
@@ -191,7 +192,7 @@ process_arguments (int argc, char **argv) | |||
191 | return ERROR; | 192 | return ERROR; |
192 | 193 | ||
193 | while (1) { | 194 | while (1) { |
194 | c = getopt_long (argc, argv, "hVvt:l:H:w:c:T:a:", longopts, &option); | 195 | c = getopt_long (argc, argv, "hVvt:l:H:w:c:T:p:a:", longopts, &option); |
195 | 196 | ||
196 | if (c == -1 || c == EOF) | 197 | if (c == -1 || c == EOF) |
197 | break; | 198 | break; |
@@ -300,7 +301,7 @@ print_help (void) | |||
300 | 301 | ||
301 | printf (_(UT_HELP_VRSN)); | 302 | printf (_(UT_HELP_VRSN)); |
302 | 303 | ||
303 | printf (_(UT_HOST_PORT), 'P', myport); | 304 | printf (_(UT_HOST_PORT), 'p', myport); |
304 | 305 | ||
305 | printf (" %s\n","-l, --lookup=STRING"); | 306 | printf (" %s\n","-l, --lookup=STRING"); |
306 | printf (" %s\n",_("machine name to lookup")); | 307 | printf (" %s\n",_("machine name to lookup")); |