From d5a3600ae32b4d43c91bda2cc8cd554b04c119c6 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Fri, 3 May 2013 23:32:14 +0200 Subject: Add include guards in header files. --- metaentry.h | 4 ++++ metastore.h | 5 +++++ utils.h | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/metaentry.h b/metaentry.h index bd80bc4..09a58a9 100644 --- a/metaentry.h +++ b/metaentry.h @@ -18,6 +18,9 @@ * */ +#ifndef METAENTRY_H +#define METAENTRY_H + #include #include "settings.h" @@ -90,3 +93,4 @@ void mentries_compare(struct metahash *mhashreal, int cmp), msettings *st); +#endif /* METAENTRY_H */ diff --git a/metastore.h b/metastore.h index 7bc7868..9da0f00 100644 --- a/metastore.h +++ b/metastore.h @@ -18,6 +18,9 @@ * */ +#ifndef METASTORE_H +#define METASTORE_H + /* Each file starts with SIGNATURE and VERSION */ #define SIGNATURE "MeTaSt00r3" #define SIGNATURELEN 10 @@ -32,3 +35,5 @@ #define ACTION_SAVE 0x02 #define ACTION_APPLY 0x04 #define ACTION_HELP 0x08 + +#endif /* METASTORE_H */ diff --git a/utils.h b/utils.h index a5f8b54..d19c3ae 100644 --- a/utils.h +++ b/utils.h @@ -18,6 +18,9 @@ * */ +#ifndef UTILS_H +#define UTILS_H + /* For uint64_t */ #include /* For ssize_t */ @@ -85,3 +88,4 @@ struct passwd *xgetpwnam(const char *name); /* Caching version of getpwuid */ struct passwd *xgetpwuid(uid_t uid); +#endif /* UTILS_H */ -- cgit v1.2.1