summaryrefslogtreecommitdiffstats
path: root/drivers/staging/batman-adv/hash.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven.eckelmann@gmx.de>2010-06-26 00:28:24 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-08 12:17:32 -0700
commit62c2072003074f3e7fdc1bfb07f4362215b49937 (patch)
tree33dbaa7591f7b26a9ea1f762224285bd9b6a47f2 /drivers/staging/batman-adv/hash.h
parent7809cea94f4094918df062bd84b327dc4119d304 (diff)
downloadop-kernel-dev-62c2072003074f3e7fdc1bfb07f4362215b49937.zip
op-kernel-dev-62c2072003074f3e7fdc1bfb07f4362215b49937.tar.gz
Staging: batman-adv: Add include guards to all header files
We include different header files indirectly to the same source file. This creates weird compiler errors from time to time. Include guards should prefend that functions/variables/... gets redefined by itself. Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/batman-adv/hash.h')
-rw-r--r--drivers/staging/batman-adv/hash.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/batman-adv/hash.h b/drivers/staging/batman-adv/hash.h
index 0505595..c483e11 100644
--- a/drivers/staging/batman-adv/hash.h
+++ b/drivers/staging/batman-adv/hash.h
@@ -19,8 +19,9 @@
*
*/
-#ifndef _BATMAN_HASH_H
-#define _BATMAN_HASH_H
+#ifndef _NET_BATMAN_ADV_HASH_H_
+#define _NET_BATMAN_ADV_HASH_H_
+
#define HASHIT(name) struct hash_it_t name = { \
.index = -1, .bucket = NULL, \
.prev_bucket = NULL, \
@@ -95,4 +96,5 @@ struct hashtable_t *hash_resize(struct hashtable_t *hash, int size);
* the returned iterator to access the elements until hash_it_t returns NULL. */
struct hash_it_t *hash_iterate(struct hashtable_t *hash,
struct hash_it_t *iter_in);
-#endif
+
+#endif /* _NET_BATMAN_ADV_HASH_H_ */
OpenPOWER on IntegriCloud