[OpenWrt-Devel] [PATCH procd v2 06/17] ujail: add <stdio.h> to log.h

Etienne CHAMPETIER champetier.etienne at gmail.com
Wed Nov 25 12:54:39 EST 2015


headers must include all there dependencies, no more, no less
(it uses fprintf)

Signed-off-by: Etienne CHAMPETIER <champetier.etienne at gmail.com>
---
 jail/elf.c  | 1 -
 jail/jail.c | 1 -
 jail/log.h  | 1 +
 3 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/jail/elf.c b/jail/elf.c
index fb046b4..6d36215 100644
--- a/jail/elf.c
+++ b/jail/elf.c
@@ -16,7 +16,6 @@
 
 #include <stdlib.h>
 #include <unistd.h>
-#include <stdio.h>
 #include <string.h>
 #include <sys/stat.h>
 #include <fcntl.h>
diff --git a/jail/jail.c b/jail/jail.c
index 52f88ef..7349a05 100644
--- a/jail/jail.c
+++ b/jail/jail.c
@@ -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>
diff --git a/jail/log.h b/jail/log.h
index 89e797b..0da3f2e 100644
--- a/jail/log.h
+++ b/jail/log.h
@@ -13,6 +13,7 @@
 #pragma once
 
 extern int debug;
+#include <stdio.h>
 #include <syslog.h>
 
 #define INFO(fmt, ...) do { \
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list