ujail: add <stdio.h> to log.h
authorEtienne CHAMPETIER <champetier.etienne@gmail.com>
Fri, 27 Nov 2015 16:27:05 +0000 (16:27 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 27 Nov 2015 16:48:49 +0000 (17:48 +0100)
headers must include all there dependencies, no more, no less
(it uses fprintf)

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
jail/elf.c
jail/jail.c
jail/log.h

index fb046b4715e834fe0a3a0d5fa9b0543f5f18b854..6d36215f0241391f7b36d238f42392a4b2930156 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <stdlib.h>
 #include <unistd.h>
-#include <stdio.h>
 #include <string.h>
 #include <sys/stat.h>
 #include <fcntl.h>
index 52f88ef3ad193d2239da65e967507b9a39a7df68..7349a05eda67e14f70bad7b316f0cc607a665f3e 100644 (file)
@@ -20,7 +20,6 @@
 #include <unistd.h>
 #include <values.h>
 #include <errno.h>
-#include <stdio.h>
 #include <string.h>
 #include <sys/stat.h>
 #include <fcntl.h>
index 56c98a0f7f7b663c85229ed1454154b4ac712cee..74a9f11f62b4218d002015603d00cb663a21a06b 100644 (file)
@@ -14,6 +14,7 @@
 #define _JAIL_LOG_H_
 
 extern int debug;
+#include <stdio.h>
 #include <syslog.h>
 
 #define INFO(fmt, ...) do { \