diff options
author | Colin Walters <walters@verbum.org> | 2016-05-18 09:41:31 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2016-05-19 02:41:33 +0000 |
commit | fdf82f9b148c72c343286627af07bca002ecf99a (patch) | |
tree | e33669cb56ed770a7c85e611f6fdc0f8d6a7780a | |
parent | 649a4efbb8439302f15be35563fe19ef2fc248b8 (diff) | |
download | bubblewrap-fdf82f9b148c72c343286627af07bca002ecf99a.tar.gz |
Use #pragma once for headers
It's shorter and more reliable. Also GCC/CLang specific, but that's
fine because that's all we support anyways.
Closes: #69
Closes: #70
Approved by: mrunalp
-rw-r--r-- | bind-mount.h | 5 | ||||
-rw-r--r-- | network.h | 5 | ||||
-rw-r--r-- | utils.h | 5 |
3 files changed, 3 insertions, 12 deletions
diff --git a/bind-mount.h b/bind-mount.h index c23a50b..c763763 100644 --- a/bind-mount.h +++ b/bind-mount.h @@ -16,8 +16,7 @@ * */ -#ifndef __MOUNTS_H__ -#define __MOUNTS_H__ +#pragma once typedef enum { BIND_READONLY = (1 << 0), @@ -29,5 +28,3 @@ int bind_mount (int proc_fd, const char *src, const char *dest, bind_option_t options); - -#endif /* __MOUNTS_H__ */ @@ -16,9 +16,6 @@ * */ -#ifndef __NETWORK_H__ -#define __NETWORK_H__ +#pragma once int loopback_setup (void); - -#endif /* __NETWORK_H__ */ @@ -16,8 +16,7 @@ * */ -#ifndef __UTILS_H__ -#define __UTILS_H__ +#pragma once #include <assert.h> #include <dirent.h> @@ -163,5 +162,3 @@ steal_pointer (void *pp) /* type safety */ #define steal_pointer(pp) \ (0 ? (*(pp)) : (steal_pointer) (pp)) - -#endif /* __UTILS_H__ */ |