summaryrefslogtreecommitdiffstats
path: root/jail
diff options
context:
space:
mode:
authorEtienne CHAMPETIER <champetier.etienne@gmail.com>2015-08-27 01:26:46 +0200
committerJohn Crispin <blogic@openwrt.org>2015-10-07 11:08:00 +0200
commitbfd963313f155846b4f6269bbc76161f81e1e99f (patch)
treeb30ef0dc7685d038217095b19b1f81efe2a28442 /jail
parent51201235db9dad9fe1823d9de46ed90f5e160fd0 (diff)
downloadunitd-bfd963313f155846b4f6269bbc76161f81e1e99f.tar
unitd-bfd963313f155846b4f6269bbc76161f81e1e99f.zip
jail: cleanup include
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
Diffstat (limited to 'jail')
-rw-r--r--jail/elf.c14
-rw-r--r--jail/jail.c10
-rw-r--r--jail/log.h1
3 files changed, 1 insertions, 24 deletions
diff --git a/jail/elf.c b/jail/elf.c
index c198599..cbb3051 100644
--- a/jail/elf.c
+++ b/jail/elf.c
@@ -12,33 +12,19 @@
*/
#define _GNU_SOURCE
-#include <sys/syscall.h>
#include <sys/mman.h>
-#include <sys/utsname.h>
-#include <sys/types.h>
-#include <sys/wait.h>
#include <stdlib.h>
#include <unistd.h>
-#include <sys/syscall.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <values.h>
-#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <syslog.h>
#include <libgen.h>
#include <glob.h>
#include <elf.h>
-#include <libubox/avl.h>
-#include <libubox/avl-cmp.h>
#include <libubox/utils.h>
-#include <libubox/list.h>
-#include <libubox/uloop.h>
#include "elf.h"
diff --git a/jail/jail.c b/jail/jail.c
index 3d0830e..40b7558 100644
--- a/jail/jail.c
+++ b/jail/jail.c
@@ -12,12 +12,6 @@
*/
#define _GNU_SOURCE
-#include <sys/syscall.h>
-#include <sys/mman.h>
-#include <sys/utsname.h>
-#include <sys/types.h>
-#include <sys/syscall.h>
-#include <sys/types.h>
#include <sys/mount.h>
#include <sys/prctl.h>
#include <sys/wait.h>
@@ -30,16 +24,12 @@
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <syslog.h>
#include <libgen.h>
-#include <glob.h>
-#include <elf.h>
#include <sched.h>
#include "elf.h"
#include "capabilities.h"
-#include <libubox/utils.h>
#include <libubox/list.h>
#include <libubox/uloop.h>
diff --git a/jail/log.h b/jail/log.h
index f8590b3..b1d201e 100644
--- a/jail/log.h
+++ b/jail/log.h
@@ -12,6 +12,7 @@
*/
extern int debug;
+#include <syslog.h>
#define INFO(fmt, ...) do { \
printf("jail: "fmt, ## __VA_ARGS__); \