diff mbox

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

Message ID 1448474090-30280-7-git-send-email-champetier.etienne@gmail.com
State Superseded
Headers show

Commit Message

Etienne Champetier Nov. 25, 2015, 5:54 p.m. UTC
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  | 1 -
 jail/jail.c | 1 -
 jail/log.h  | 1 +
 3 files changed, 1 insertion(+), 2 deletions(-)
diff mbox

Patch

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 { \