Browse Source

ujail: add <stdio.h> to log.h

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

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
Etienne CHAMPETIER 8 years ago
parent
commit
5b51de11f6
3 changed files with 1 additions and 2 deletions
  1. 0 1
      jail/elf.c
  2. 0 1
      jail/jail.c
  3. 1 0
      jail/log.h

+ 0 - 1
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>

+ 0 - 1
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>

+ 1 - 0
jail/log.h

@@ -14,6 +14,7 @@
 #define _JAIL_LOG_H_
 
 extern int debug;
+#include <stdio.h>
 #include <syslog.h>
 
 #define INFO(fmt, ...) do { \