mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-20 00:10:09 -05:00
Merge pull request #1855 from monitoring-plugins/curlfreebsdfixes
check_curl: including netinet/in.h (for FreeBSD), fixed an ambigous compare warning
This commit is contained in:
commit
482aa6c7fe
1 changed files with 2 additions and 1 deletions
|
|
@ -55,6 +55,7 @@ const char *email = "devel@monitoring-plugins.org";
|
|||
#include "uriparser/Uri.h"
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#if defined(HAVE_SSL) && defined(USE_OPENSSL)
|
||||
#include <openssl/opensslv.h>
|
||||
|
|
@ -541,7 +542,7 @@ check_http (void)
|
|||
/* compose URL: use the address we want to connect to, set Host: header later */
|
||||
snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s:%d%s",
|
||||
use_ssl ? "https" : "http",
|
||||
use_ssl & host_name != NULL ? host_name : server_address,
|
||||
( use_ssl & ( host_name != NULL ) ) ? host_name : server_address,
|
||||
server_port,
|
||||
server_url
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue