From b830c7a3e07ea5cd7b8253c4c9fadecd9ad621b6 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:51:14 +0100 Subject: check_smtp: delare previously missed file local variables static --- plugins/check_smtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/check_smtp.c') diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index c73693c0..e6369e63 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c @@ -40,8 +40,8 @@ const char *email = "devel@monitoring-plugins.org"; #include #ifdef HAVE_SSL -bool check_cert = false; -int days_till_exp_warn, days_till_exp_crit; +static bool check_cert = false; +static int days_till_exp_warn, days_till_exp_crit; # define my_recv(buf, len) (((use_starttls || use_ssl) && ssl_established) ? np_net_ssl_read(buf, len) : read(sd, buf, len)) # define my_send(buf, len) (((use_starttls || use_ssl) && ssl_established) ? np_net_ssl_write(buf, len) : send(sd, buf, len, 0)) #else /* ifndef HAVE_SSL */ -- cgit v1.2.3-74-g34f1