From 3038819fef47495af2730b0d2df2a5a8475fc7bb Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Mon, 31 Oct 2005 20:03:19 +0000 Subject: code cleanups, largely resulting from turning on -Wall. mostly unused variables and explicit casting issues, but there were a couple gotchas in there too. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1267 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_http.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/check_http.c') diff --git a/plugins/check_http.c b/plugins/check_http.c index 413d501d..9ff572e9 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -746,9 +746,6 @@ check_http (void) double elapsed_time; int page_len = 0; int result = STATE_UNKNOWN; -#ifdef HAVE_SSL - int sslerr; -#endif /* try to connect to the host at the given port number */ if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK) @@ -793,7 +790,7 @@ check_http (void) asprintf (&buf, "%sContent-Type: application/x-www-form-urlencoded\r\n", buf); } - asprintf (&buf, "%sContent-Length: %i\r\n\r\n", buf, strlen (http_post_data)); + asprintf (&buf, "%sContent-Length: %i\r\n\r\n", buf, (int)strlen (http_post_data)); asprintf (&buf, "%s%s%s", buf, http_post_data, CRLF); } else { @@ -858,7 +855,7 @@ check_http (void) if (verbose) printf ("%s://%s:%d%s is %d characters\n", use_ssl ? "https" : "http", server_address, - server_port, server_url, pagesize); + server_port, server_url, (int)pagesize); /* find status line and null-terminate it */ status_line = page; -- cgit v1.2.3