[dm-devel] [PATCH 3/5] libmpathpersist/multipathd: remove duplicate definition

mwilck at suse.com mwilck at suse.com
Thu Dec 16 12:55:00 UTC 2021


From: Martin Wilck <mwilck at suse.com>

... of FILE_NAME_SIZE.

Signed-off-by: Martin Wilck <mwilck at suse.com>
---
 libmpathpersist/mpath_pr_ioctl.c | 3 +--
 multipathd/main.c                | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/libmpathpersist/mpath_pr_ioctl.c b/libmpathpersist/mpath_pr_ioctl.c
index 126601c..17c5284 100644
--- a/libmpathpersist/mpath_pr_ioctl.c
+++ b/libmpathpersist/mpath_pr_ioctl.c
@@ -17,8 +17,7 @@
 #include "unaligned.h"
 
 #include "debug.h"
-
-#define FILE_NAME_SIZE          256
+#include "structs.h" /* FILE_NAME_SIZE */
 
 #define TIMEOUT 2000
 #define MAXRETRY 5
diff --git a/multipathd/main.c b/multipathd/main.c
index 8926cbb..93851cd 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -85,7 +85,6 @@
 #include "../third-party/valgrind/drd.h"
 #include "init_unwinder.h"
 
-#define FILE_NAME_SIZE 256
 #define CMDSIZE 160
 #define MSG_SIZE 32
 
-- 
2.34.1





More information about the dm-devel mailing list