mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-21 01:45:14 -04:00
Fix compiler warning about comparing different signedness
This commit is contained in:
parent
1db493092c
commit
9a1beb3107
3 changed files with 4 additions and 4 deletions
|
|
@ -40,8 +40,8 @@ typedef struct {
|
|||
|
||||
bool use_proxy_prefix;
|
||||
#ifdef HAVE_SSL
|
||||
int days_till_exp_warn;
|
||||
int days_till_exp_crit;
|
||||
unsigned int days_till_exp_warn;
|
||||
unsigned int days_till_exp_crit;
|
||||
bool use_ssl;
|
||||
bool use_starttls;
|
||||
bool use_sni;
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ typedef struct {
|
|||
double remaining_seconds;
|
||||
retrieve_expiration_date_errors errors;
|
||||
} net_ssl_check_cert_result;
|
||||
net_ssl_check_cert_result np_net_ssl_check_cert2(int days_till_exp_warn, int days_till_exp_crit);
|
||||
net_ssl_check_cert_result np_net_ssl_check_cert2(unsigned int days_till_exp_warn, unsigned int days_till_exp_crit);
|
||||
|
||||
mp_state_enum np_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit);
|
||||
mp_subcheck mp_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit);
|
||||
|
|
|
|||
|
|
@ -410,7 +410,7 @@ retrieve_expiration_time_result np_net_ssl_get_cert_expiration(X509 *certificate
|
|||
# endif /* MOPL_USE_OPENSSL */
|
||||
}
|
||||
|
||||
net_ssl_check_cert_result np_net_ssl_check_cert2(int days_till_exp_warn, int days_till_exp_crit) {
|
||||
net_ssl_check_cert_result np_net_ssl_check_cert2(unsigned int days_till_exp_warn, unsigned int days_till_exp_crit) {
|
||||
# ifdef MOPL_USE_OPENSSL
|
||||
X509 *certificate = NULL;
|
||||
certificate = SSL_get_peer_certificate(s);
|
||||
|
|
|
|||
Loading…
Reference in a new issue