Fix compiler warning about comparing different signedness

This commit is contained in:
Lorenz Kästle 2026-04-09 12:28:23 +02:00
parent 1db493092c
commit 9a1beb3107
3 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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);