summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-05-18 09:41:31 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2016-05-19 02:41:33 +0000
commitfdf82f9b148c72c343286627af07bca002ecf99a (patch)
treee33669cb56ed770a7c85e611f6fdc0f8d6a7780a
parent649a4efbb8439302f15be35563fe19ef2fc248b8 (diff)
downloadbubblewrap-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.h5
-rw-r--r--network.h5
-rw-r--r--utils.h5
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__ */
diff --git a/network.h b/network.h
index 559bb50..d712d91 100644
--- a/network.h
+++ b/network.h
@@ -16,9 +16,6 @@
*
*/
-#ifndef __NETWORK_H__
-#define __NETWORK_H__
+#pragma once
int loopback_setup (void);
-
-#endif /* __NETWORK_H__ */
diff --git a/utils.h b/utils.h
index 539dbd7..9a504ec 100644
--- a/utils.h
+++ b/utils.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__ */