[dm-devel] [PATCH 3/3] multipathd/cli.h: Add a header file guard

Bart Van Assche bart.vanassche at wdc.com
Tue Dec 12 00:45:03 UTC 2017


This patch avoids that compilation breaks if the multipathd/cli.h
header file is included multiple times from the same compilation unit.

Signed-off-by: Bart Van Assche <bart.vanassche at wdc.com>
---
 multipathd/cli.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/multipathd/cli.h b/multipathd/cli.h
index d289167e20ff..021f25b7085a 100644
--- a/multipathd/cli.h
+++ b/multipathd/cli.h
@@ -1,3 +1,6 @@
+#ifndef _CLI_H_
+#define _CLI_H_
+
 #include <stdint.h>
 
 enum {
@@ -126,3 +129,5 @@ void free_handlers (void);
 int cli_init (void);
 void cli_exit(void);
 char * key_generator (const char * str, int state);
+
+#endif /* _CLI_H_ */
-- 
2.15.1




More information about the dm-devel mailing list