1dad67a5af
Update Source to upstream version 0.8.5 plus post tag commits * Patches 0001-0102 are from https://github.com/openSUSE/multipath-tools/tree/queue and are already queued for upstream. Rename files * Previous patches 0059-0068 are now patches 0103-0111
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Martin Wilck <mwilck@suse.com>
|
|
Date: Wed, 23 Sep 2020 11:18:02 +0200
|
|
Subject: [PATCH] multipathd: make some globals static
|
|
|
|
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
---
|
|
multipathd/main.c | 14 +++++++-------
|
|
1 file changed, 7 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/multipathd/main.c b/multipathd/main.c
|
|
index 3da0d7cc..eb760a71 100644
|
|
--- a/multipathd/main.c
|
|
+++ b/multipathd/main.c
|
|
@@ -116,19 +116,19 @@ struct mpath_event_param
|
|
};
|
|
|
|
int uxsock_timeout;
|
|
-int verbosity;
|
|
-int bindings_read_only;
|
|
+static int verbosity;
|
|
+static int bindings_read_only;
|
|
int ignore_new_devs;
|
|
#ifdef NO_DMEVENTS_POLL
|
|
-int poll_dmevents = 0;
|
|
+static int poll_dmevents = 0;
|
|
#else
|
|
-int poll_dmevents = 1;
|
|
+static int poll_dmevents = 1;
|
|
#endif
|
|
/* Don't access this variable without holding config_lock */
|
|
-volatile enum daemon_status running_state = DAEMON_INIT;
|
|
+static volatile enum daemon_status running_state = DAEMON_INIT;
|
|
pid_t daemon_pid;
|
|
-pthread_mutex_t config_lock = PTHREAD_MUTEX_INITIALIZER;
|
|
-pthread_cond_t config_cond;
|
|
+static pthread_mutex_t config_lock = PTHREAD_MUTEX_INITIALIZER;
|
|
+static pthread_cond_t config_cond;
|
|
|
|
static inline enum daemon_status get_running_state(void)
|
|
{
|
|
--
|
|
2.17.2
|
|
|