summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 413d501..9ff572e 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -746,9 +746,6 @@ check_http (void)
746 double elapsed_time; 746 double elapsed_time;
747 int page_len = 0; 747 int page_len = 0;
748 int result = STATE_UNKNOWN; 748 int result = STATE_UNKNOWN;
749#ifdef HAVE_SSL
750 int sslerr;
751#endif
752 749
753 /* try to connect to the host at the given port number */ 750 /* try to connect to the host at the given port number */
754 if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK) 751 if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK)
@@ -793,7 +790,7 @@ check_http (void)
793 asprintf (&buf, "%sContent-Type: application/x-www-form-urlencoded\r\n", buf); 790 asprintf (&buf, "%sContent-Type: application/x-www-form-urlencoded\r\n", buf);
794 } 791 }
795 792
796 asprintf (&buf, "%sContent-Length: %i\r\n\r\n", buf, strlen (http_post_data)); 793 asprintf (&buf, "%sContent-Length: %i\r\n\r\n", buf, (int)strlen (http_post_data));
797 asprintf (&buf, "%s%s%s", buf, http_post_data, CRLF); 794 asprintf (&buf, "%s%s%s", buf, http_post_data, CRLF);
798 } 795 }
799 else { 796 else {
@@ -858,7 +855,7 @@ check_http (void)
858 if (verbose) 855 if (verbose)
859 printf ("%s://%s:%d%s is %d characters\n", 856 printf ("%s://%s:%d%s is %d characters\n",
860 use_ssl ? "https" : "http", server_address, 857 use_ssl ? "https" : "http", server_address,
861 server_port, server_url, pagesize); 858 server_port, server_url, (int)pagesize);
862 859
863 /* find status line and null-terminate it */ 860 /* find status line and null-terminate it */
864 status_line = page; 861 status_line = page;