ujail: put #include guard macro in all *.h
authorEtienne CHAMPETIER <champetier.etienne@gmail.com>
Fri, 27 Nov 2015 16:27:04 +0000 (16:27 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 27 Nov 2015 16:48:49 +0000 (17:48 +0100)
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
jail/capabilities.h
jail/elf.h
jail/log.h
jail/seccomp.h

index e6699e9..11b8cc2 100644 (file)
@@ -10,5 +10,9 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  */
+#ifndef _JAIL_CAPABILITIES_H_
+#define _JAIL_CAPABILITIES_H_
 
 int drop_capabilities(const char *file);
+
+#endif
index ddbe234..570e4d0 100644 (file)
@@ -10,8 +10,9 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  */
+#ifndef _JAIL_ELF_H_
+#define _JAIL_ELF_H_
 
-#ifndef _ELF_H__
 #include <libubox/avl.h>
 #include <libubox/avl-cmp.h>
 
index b1d201e..56c98a0 100644 (file)
@@ -10,6 +10,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  */
+#ifndef _JAIL_LOG_H_
+#define _JAIL_LOG_H_
 
 extern int debug;
 #include <syslog.h>
@@ -25,3 +27,4 @@ extern int debug;
        if (debug) printf("jail: "fmt, ## __VA_ARGS__); \
        } while (0)
 
+#endif
index 45eede7..0992b79 100644 (file)
@@ -10,6 +10,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  */
+#ifndef _JAIL_SECCOMP_H_
+#define _JAIL_SECCOMP_H_
 
 #define INFO(fmt, ...) do { \
        syslog(LOG_INFO,"preload-seccomp: "fmt, ## __VA_ARGS__); \
@@ -17,3 +19,5 @@
        } while (0)
 
 int install_syscall_filter(const char *argv, const char *file);
+
+#endif