[dm-devel] [PATCH 2/3] Allow the compiler to verify the consistency of the uxsock_timeout definition and declaration
Bart Van Assche
bart.vanassche at wdc.com
Tue Dec 12 00:45:02 UTC 2017
Global variables should be defined after the header file with
their declaration has been included. Hence move the declaration
of usock_timeout further down.
Signed-off-by: Bart Van Assche <bart.vanassche at wdc.com>
---
multipathd/main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/multipathd/main.c b/multipathd/main.c
index 31ce923385a7..d611597a4ef8 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -39,8 +39,6 @@
static int use_watchdog;
#endif
-int uxsock_timeout;
-
/*
* libmultipath
*/
@@ -106,6 +104,7 @@ struct mpath_event_param
};
int logsink;
+int uxsock_timeout;
int verbosity;
int bindings_read_only;
int ignore_new_devs;
--
2.15.1
More information about the dm-devel
mailing list