diff options
author | Etienne CHAMPETIER <champetier.etienne@gmail.com> | 2015-08-27 01:26:46 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-10-07 11:08:00 +0200 |
commit | bfd963313f155846b4f6269bbc76161f81e1e99f (patch) | |
tree | b30ef0dc7685d038217095b19b1f81efe2a28442 /jail | |
parent | 51201235db9dad9fe1823d9de46ed90f5e160fd0 (diff) | |
download | unitd-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.c | 14 | ||||
-rw-r--r-- | jail/jail.c | 10 | ||||
-rw-r--r-- | jail/log.h | 1 |
3 files changed, 1 insertions, 24 deletions
@@ -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> @@ -12,6 +12,7 @@ */ extern int debug; +#include <syslog.h> #define INFO(fmt, ...) do { \ printf("jail: "fmt, ## __VA_ARGS__); \ |