From 1b90511eeb9c4996002a24be11b542c21277f6ba Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 7 Apr 2015 21:00:08 +0200 Subject: [PATCH] CLEANUP: namespaces: fix protection against multiple inclusions The include file did not protect correctly against multiple inclusions, as it didn't define the file name after checking for it. That's currently harmless as the file is only included from .c but that could change. --- include/common/namespace.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/common/namespace.h b/include/common/namespace.h index e67742b1b..fa4185db6 100644 --- a/include/common/namespace.h +++ b/include/common/namespace.h @@ -1,4 +1,5 @@ -#ifndef NAMESPACE_H +#ifndef _NAMESPACE_H +#define _NAMESPACE_H #include #include @@ -21,4 +22,4 @@ const struct netns_entry* netns_store_lookup(const char *ns_name, size_t ns_name int netns_init(void); #endif /* CONFIG_HAP_NS */ -#endif /* NAMESPACE_H */ +#endif /* _NAMESPACE_H */