jail: cleanup include
authorEtienne CHAMPETIER <champetier.etienne@gmail.com>
Wed, 26 Aug 2015 23:26:46 +0000 (23:26 +0000)
committerJohn Crispin <blogic@openwrt.org>
Wed, 7 Oct 2015 09:08:00 +0000 (11:08 +0200)
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
jail/elf.c
jail/jail.c
jail/log.h

index c19859987b8093de05fd3ba3d6d76889b182ef40..cbb30510d71695d71b911b96a04323b0a779f245 100644 (file)
  */
 
 #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"
 
index 3d0830e98010d792712c14828a8b2f13d00cdda3..40b7558188fe86a9af5f7cc9e36913a745a66963 100644 (file)
  */
 
 #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>
 #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>
 
index f8590b39facf661ef4bd5cdc7259473ab110cf78..b1d201e8d1e052c127f9a6aca3869f5401af5b45 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 extern int debug;
+#include <syslog.h>
 
 #define INFO(fmt, ...) do { \
        printf("jail: "fmt, ## __VA_ARGS__); \