summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorTon Voon <tonvoon@macbook.local>2009-02-20 00:00:13 +0000
committerTon Voon <tonvoon@macbook.local>2009-02-20 00:00:13 +0000
commit532454485570d76c159b7ddcf218dce1d59c26d3 (patch)
tree2080263bdd160ed32173955568d78ddbffa9dfce /plugins/check_http.c
parent31efea1b490a12a64ce0359c2d847a381d2efb7b (diff)
downloadmonitoring-plugins-532454485570d76c159b7ddcf218dce1d59c26d3.tar.gz
Typo fixes (Jan Wagner - SF 1878971)
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 620e1578..e140be01 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1103,7 +1103,7 @@ redir (char *pos, char *status_line)
1103 1103
1104 url = malloc (strcspn (pos, "\r\n")); 1104 url = malloc (strcspn (pos, "\r\n"));
1105 if (url == NULL) 1105 if (url == NULL)
1106 die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate url\n")); 1106 die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate URL\n"));
1107 1107
1108 while (pos) { 1108 while (pos) {
1109 sscanf (pos, "%1[Ll]%*1[Oo]%*1[Cc]%*1[Aa]%*1[Tt]%*1[Ii]%*1[Oo]%*1[Nn]:%n", xx, &i); 1109 sscanf (pos, "%1[Ll]%*1[Oo]%*1[Cc]%*1[Aa]%*1[Tt]%*1[Ii]%*1[Oo]%*1[Nn]:%n", xx, &i);
@@ -1134,7 +1134,7 @@ redir (char *pos, char *status_line)
1134 1134
1135 url = realloc (url, strcspn (pos, "\r\n") + 1); 1135 url = realloc (url, strcspn (pos, "\r\n") + 1);
1136 if (url == NULL) 1136 if (url == NULL)
1137 die (STATE_UNKNOWN, _("HTTP UNKNOWN - could not allocate url\n")); 1137 die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate URL\n"));
1138 1138
1139 /* URI_HTTP, URI_HOST, URI_PORT, URI_PATH */ 1139 /* URI_HTTP, URI_HOST, URI_PORT, URI_PATH */
1140 if (sscanf (pos, HD1, type, addr, &i, url) == 4) { 1140 if (sscanf (pos, HD1, type, addr, &i, url) == 4) {
@@ -1301,7 +1301,7 @@ print_help (void)
1301 printf (" %s\n", _("Connect via SSL. Port defaults to 443")); 1301 printf (" %s\n", _("Connect via SSL. Port defaults to 443"));
1302 printf (" %s\n", "-C, --certificate=INTEGER"); 1302 printf (" %s\n", "-C, --certificate=INTEGER");
1303 printf (" %s\n", _("Minimum number of days a certificate has to be valid. Port defaults to 443")); 1303 printf (" %s\n", _("Minimum number of days a certificate has to be valid. Port defaults to 443"));
1304 printf (" %s\n", _("(when this option is used the url is not checked.)\n")); 1304 printf (" %s\n", _("(when this option is used the URL is not checked.)\n"));
1305#endif 1305#endif
1306 1306
1307 printf (" %s\n", "-e, --expect=STRING"); 1307 printf (" %s\n", "-e, --expect=STRING");