]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: namespaces: fix protection against multiple inclusions
authorWilly Tarreau <w@1wt.eu>
Tue, 7 Apr 2015 19:00:08 +0000 (21:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Apr 2015 15:31:40 +0000 (17:31 +0200)
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

index e67742b1bf0c1b83535fe929e66451de4c14078e..fa4185db61dfff84bc66f197f3d1d612ca6d6fda 100644 (file)
@@ -1,4 +1,5 @@
-#ifndef NAMESPACE_H
+#ifndef _NAMESPACE_H
+#define _NAMESPACE_H
 
 #include <stdlib.h>
 #include <ebistree.h>
@@ -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 */