diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-31 20:03:19 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-31 20:03:19 +0000 |
commit | 3038819fef47495af2730b0d2df2a5a8475fc7bb (patch) | |
tree | 978a1706ef546a153bfc41af7f33959b4543678c /plugins/check_http.c | |
parent | 0ff7d99a5e75683e778943884e60a11251183f45 (diff) | |
download | monitoring-plugins-3038819fef47495af2730b0d2df2a5a8475fc7bb.tar.gz |
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
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 7 |
1 files changed, 2 insertions, 5 deletions
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; |