[OpenWrt-Devel] [PATCH procd v2 05/17] ujail: use "#pragma once" in .h where needed
Etienne CHAMPETIER
champetier.etienne at gmail.com
Wed Nov 25 12:54:38 EST 2015
Signed-off-by: Etienne CHAMPETIER <champetier.etienne at gmail.com>
---
jail/capabilities.h | 1 +
jail/elf.h | 4 +---
jail/log.h | 1 +
jail/seccomp.h | 1 +
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/jail/capabilities.h b/jail/capabilities.h
index e6699e9..beb67cc 100644
--- a/jail/capabilities.h
+++ b/jail/capabilities.h
@@ -10,5 +10,6 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
+#pragma once
int drop_capabilities(const char *file);
diff --git a/jail/elf.h b/jail/elf.h
index ddbe234..82cbe14 100644
--- a/jail/elf.h
+++ b/jail/elf.h
@@ -10,8 +10,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
+#pragma once
-#ifndef _ELF_H__
#include <libubox/avl.h>
#include <libubox/avl-cmp.h>
@@ -34,5 +34,3 @@ void alloc_library_path(const char *path);
int elf_load_deps(const char *library);
const char* find_lib(const char *file);
void load_ldso_conf(const char *conf);
-
-#endif
diff --git a/jail/log.h b/jail/log.h
index b1d201e..89e797b 100644
--- a/jail/log.h
+++ b/jail/log.h
@@ -10,6 +10,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
+#pragma once
extern int debug;
#include <syslog.h>
diff --git a/jail/seccomp.h b/jail/seccomp.h
index 45eede7..6540246 100644
--- a/jail/seccomp.h
+++ b/jail/seccomp.h
@@ -10,6 +10,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
+#pragma once
#define INFO(fmt, ...) do { \
syslog(LOG_INFO,"preload-seccomp: "fmt, ## __VA_ARGS__); \
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list