summaryrefslogtreecommitdiffstats
path: root/plugins/netutils.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-06-10 14:49:33 +0200
committerGitHub <noreply@github.com>2026-06-10 14:49:33 +0200
commitf8aad020f7c0be604da8981663b6d815f94ffaa4 (patch)
treee1c7bdeff275778b4dd324d26e826c861d143b48 /plugins/netutils.h
parent47b1b2d754d4809006f6dc1aa13ba9c80405975c (diff)
downloadmonitoring-plugins-f8aad020f7c0be604da8981663b6d815f94ffaa4.tar.gz
Run clang-format on everything once again (#2275)
Co-authored-by: Lorenz Kästle <lorenz.kaestle@netways.de>
Diffstat (limited to 'plugins/netutils.h')
-rw-r--r--plugins/netutils.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h
index 16c2d31f..a74930b8 100644
--- a/plugins/netutils.h
+++ b/plugins/netutils.h
@@ -78,8 +78,8 @@ bool dns_lookup(const char *, struct sockaddr_storage *, int);
78void host_or_die(const char *str); 78void host_or_die(const char *str);
79#define resolve_host_or_addr(addr, family) dns_lookup(addr, NULL, family) 79#define resolve_host_or_addr(addr, family) dns_lookup(addr, NULL, family)
80#define is_inet_addr(addr) resolve_host_or_addr(addr, AF_INET) 80#define is_inet_addr(addr) resolve_host_or_addr(addr, AF_INET)
81# define is_inet6_addr(addr) resolve_host_or_addr(addr, AF_INET6) 81#define is_inet6_addr(addr) resolve_host_or_addr(addr, AF_INET6)
82# define is_hostname(addr) resolve_host_or_addr(addr, address_family) 82#define is_hostname(addr) resolve_host_or_addr(addr, address_family)
83 83
84extern unsigned int socket_timeout; 84extern unsigned int socket_timeout;
85extern mp_state_enum socket_timeout_state; 85extern mp_state_enum socket_timeout_state;
@@ -128,7 +128,8 @@ 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;
131net_ssl_check_cert_result np_net_ssl_check_cert2(unsigned int days_till_exp_warn, unsigned int days_till_exp_crit); 131net_ssl_check_cert_result np_net_ssl_check_cert2(unsigned int days_till_exp_warn,
132 unsigned int days_till_exp_crit);
132 133
133mp_state_enum np_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit); 134mp_state_enum np_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit);
134mp_subcheck mp_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit); 135mp_subcheck mp_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit);