diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-04-09 14:54:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-09 14:54:08 +0200 |
| commit | 1eace3a997cac6a98091238c6f71a2279183b1ad (patch) | |
| tree | 0231a757533e58eb59418c90be69509b3d93498c /plugins | |
| parent | 1db493092ca6a68ff690251cc428037b54019a73 (diff) | |
| download | monitoring-plugins-1eace3a997cac6a98091238c6f71a2279183b1ad.tar.gz | |
* Fix compiler warning about comparing different signedness
* Fix compiler warning about constant strings
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_real.d/config.h | 2 | ||||
| -rw-r--r-- | plugins/check_smtp.d/config.h | 4 | ||||
| -rw-r--r-- | plugins/netutils.h | 2 | ||||
| -rw-r--r-- | plugins/sslutils.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_real.d/config.h b/plugins/check_real.d/config.h index 2d99ad49..15b70b98 100644 --- a/plugins/check_real.d/config.h +++ b/plugins/check_real.d/config.h | |||
| @@ -17,7 +17,7 @@ typedef struct { | |||
| 17 | int server_port; | 17 | int server_port; |
| 18 | char *server_url; | 18 | char *server_url; |
| 19 | 19 | ||
| 20 | char *server_expect; | 20 | const char *server_expect; |
| 21 | 21 | ||
| 22 | mp_thresholds time_thresholds; | 22 | mp_thresholds time_thresholds; |
| 23 | 23 | ||
diff --git a/plugins/check_smtp.d/config.h b/plugins/check_smtp.d/config.h index b0d42ed1..47826362 100644 --- a/plugins/check_smtp.d/config.h +++ b/plugins/check_smtp.d/config.h | |||
| @@ -40,8 +40,8 @@ typedef struct { | |||
| 40 | 40 | ||
| 41 | bool use_proxy_prefix; | 41 | bool use_proxy_prefix; |
| 42 | #ifdef HAVE_SSL | 42 | #ifdef HAVE_SSL |
| 43 | int days_till_exp_warn; | 43 | unsigned int days_till_exp_warn; |
| 44 | int days_till_exp_crit; | 44 | unsigned int days_till_exp_crit; |
| 45 | bool use_ssl; | 45 | bool use_ssl; |
| 46 | bool use_starttls; | 46 | bool use_starttls; |
| 47 | bool use_sni; | 47 | bool use_sni; |
diff --git a/plugins/netutils.h b/plugins/netutils.h index f3d046c3..16c2d31f 100644 --- a/plugins/netutils.h +++ b/plugins/netutils.h | |||
| @@ -128,7 +128,7 @@ typedef struct { | |||
| 128 | double remaining_seconds; | 128 | double remaining_seconds; |
| 129 | retrieve_expiration_date_errors errors; | 129 | retrieve_expiration_date_errors errors; |
| 130 | } net_ssl_check_cert_result; | 130 | } net_ssl_check_cert_result; |
| 131 | net_ssl_check_cert_result np_net_ssl_check_cert2(int days_till_exp_warn, int days_till_exp_crit); | 131 | net_ssl_check_cert_result np_net_ssl_check_cert2(unsigned int days_till_exp_warn, unsigned int days_till_exp_crit); |
| 132 | 132 | ||
| 133 | mp_state_enum np_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit); | 133 | mp_state_enum np_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit); |
| 134 | mp_subcheck mp_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit); | 134 | mp_subcheck mp_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit); |
diff --git a/plugins/sslutils.c b/plugins/sslutils.c index c4ab6a05..bcfb08d6 100644 --- a/plugins/sslutils.c +++ b/plugins/sslutils.c | |||
| @@ -410,7 +410,7 @@ retrieve_expiration_time_result np_net_ssl_get_cert_expiration(X509 *certificate | |||
| 410 | # endif /* MOPL_USE_OPENSSL */ | 410 | # endif /* MOPL_USE_OPENSSL */ |
| 411 | } | 411 | } |
| 412 | 412 | ||
| 413 | net_ssl_check_cert_result np_net_ssl_check_cert2(int days_till_exp_warn, int days_till_exp_crit) { | 413 | net_ssl_check_cert_result np_net_ssl_check_cert2(unsigned int days_till_exp_warn, unsigned int days_till_exp_crit) { |
| 414 | # ifdef MOPL_USE_OPENSSL | 414 | # ifdef MOPL_USE_OPENSSL |
| 415 | X509 *certificate = NULL; | 415 | X509 *certificate = NULL; |
| 416 | certificate = SSL_get_peer_certificate(s); | 416 | certificate = SSL_get_peer_certificate(s); |
