From: Tobias Stoeckmann Date: Tue, 18 Feb 2025 21:25:05 +0000 (+0100) Subject: modprobe: reduce visibility of use_syslog X-Git-Tag: v34~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=816eb8ab72d48d196f01da75096d741c9a1afeb7;p=thirdparty%2Fkmod.git modprobe: reduce visibility of use_syslog The use_syslog variable is only used within main function, so reduce its visibility. Signed-off-by: Tobias Stoeckmann Link: https://github.com/kmod-project/kmod/pull/282 Signed-off-by: Lucas De Marchi --- diff --git a/tools/modprobe.c b/tools/modprobe.c index 79c9fe1d..b1e4ae95 100644 --- a/tools/modprobe.c +++ b/tools/modprobe.c @@ -28,7 +28,6 @@ #include "kmod.h" static int log_priority = LOG_CRIT; -static bool use_syslog = false; #define LOG(...) log_printf(log_priority, __VA_ARGS__) #define DEFAULT_VERBOSE LOG_WARNING @@ -765,6 +764,7 @@ static int do_modprobe(int argc, char **orig_argv) int do_show_exports = 0; int err; struct stat stat_buf; + bool use_syslog = false; argv = prepend_options_from_env(&argc, orig_argv); if (argv == NULL) {