From a74dc2505e953f1ecc2785705ab82cdd8045b81b Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sun, 6 Sep 2015 03:50:39 +0900 Subject: [PATCH] sbin/hammer: Add ifndef/define/endif for headers Some headers are missing this, so add it to those. --- sbin/hammer/hammer.h | 5 +++++ sbin/hammer/hammer_util.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/sbin/hammer/hammer.h b/sbin/hammer/hammer.h index c48f9774b7..84921c0a00 100644 --- a/sbin/hammer/hammer.h +++ b/sbin/hammer/hammer.h @@ -32,6 +32,9 @@ * SUCH DAMAGE. */ +#ifndef HAMMER_HAMMER_H_ +#define HAMMER_HAMMER_H_ + #include #include #include @@ -136,3 +139,5 @@ void hammer_check_restrict(const char *path); void hammer_softprune_scandir(struct softprune **basep, struct hammer_ioc_prune *template, const char *dirname); + +#endif /* !HAMMER_HAMMER_H_ */ diff --git a/sbin/hammer/hammer_util.h b/sbin/hammer/hammer_util.h index 5c53180f05..c47b3511e9 100644 --- a/sbin/hammer/hammer_util.h +++ b/sbin/hammer/hammer_util.h @@ -32,6 +32,9 @@ * SUCH DAMAGE. */ +#ifndef HAMMER_UTIL_H_ +#define HAMMER_UTIL_H_ + #include #include #include @@ -205,3 +208,5 @@ void hammer_add_zone_stat(struct zone_stat *stats, hammer_off_t offset, void hammer_add_zone_stat_layer2(struct zone_stat *stats, struct hammer_blockmap_layer2 *layer2); void hammer_print_zone_stat(const struct zone_stat *stats); + +#endif /* !HAMMER_UTIL_H_ */ -- 2.41.0