diff mbox

[3/3] multipathd/cli.h: Add a header file guard

Message ID 20171212004503.12823-4-bart.vanassche@wdc.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show

Commit Message

Bart Van Assche Dec. 12, 2017, 12:45 a.m. UTC
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@wdc.com>
---
 multipathd/cli.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Martin Wilck Jan. 11, 2018, 10:29 p.m. UTC | #1
On Mon, 2017-12-11 at 16:45 -0800, Bart Van Assche wrote:
> 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@wdc.com>
> ---
>  multipathd/cli.h | 5 +++++
>  1 file changed, 5 insertions(+)

Reviewed-by: Martin Wilck <mwilck@suse.com>
diff mbox

Patch

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_ */