summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-12-05 19:13:31 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-12-05 19:13:31 (GMT)
commitc91ff7539af65f95c2bcef69e5643bd99773c80f (patch)
treeac57e29d78d33017cfdcc2897798859f3a620630 /plugins/check_http.c
parent4463a851127d984ec372d64242d9866048eb5e89 (diff)
downloadmonitoring-plugins-c91ff7539af65f95c2bcef69e5643bd99773c80f.tar.gz
check_http: Don't let "-N" expect an argument
Fix the problem that check_http's "-N" option expects an argument although it shouldn't. The corresponding long option ("--no-body") wasn't affected. This error was introduced in ee3c4014d511e105489b081390636cacd4c53e3f. Thanks to Kerry Hughes for reporting it on the devel@ list.
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 0ffb0c1..1595a59 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -257,7 +257,7 @@ process_arguments (int argc, char **argv)
257 } 257 }
258 258
259 while (1) { 259 while (1) {
260 c = getopt_long (argc, argv, "Vvh46t:c:w:A:k:H:P:j:T:I:a:b:d:e:p:s:R:r:u:f:C:J:K:nlLS::m:M:N:E", longopts, &option); 260 c = getopt_long (argc, argv, "Vvh46t:c:w:A:k:H:P:j:T:I:a:b:d:e:p:s:R:r:u:f:C:J:K:nlLS::m:M:NE", longopts, &option);
261 if (c == -1 || c == EOF) 261 if (c == -1 || c == EOF)
262 break; 262 break;
263 263