Fix common.h includes
authorRobert Swiecki <swiecki@google.com>
Tue, 1 Mar 2016 16:03:11 +0000 (17:03 +0100)
committerRobert Swiecki <swiecki@google.com>
Tue, 1 Mar 2016 16:03:11 +0000 (17:03 +0100)
cmdline.c
contain.c
log.h
net.c
net.h
nsjail.c
nsjail.h
subproc.h
util.h

index 15cac7f0a4032a5ac47cda8447db12bd1791a894..cee75399bb686cde655d301a892035657db656b2 100644 (file)
--- a/cmdline.c
+++ b/cmdline.c
@@ -41,7 +41,6 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-#include "common.h"
 #include "log.h"
 #include "util.h"
 
index 28cb998860625dc2f6fc0e7b40d241758973a16c..ca19dc0201b6928c220d565ecf8e9171fe89f03c 100644 (file)
--- a/contain.c
+++ b/contain.c
@@ -18,6 +18,7 @@
    limitations under the License.
 
 */
+
 #include "contain.h"
 
 #include <dirent.h>
diff --git a/log.h b/log.h
index 9cea4d2ec32ae4ce27365693d1cf758060699162..04181b35b2acf0d5aebfe9636b45cf205f19a33a 100644 (file)
--- a/log.h
+++ b/log.h
@@ -18,6 +18,7 @@
    limitations under the License.
 
 */
+
 #ifndef _LOG_H
 #define _LOG_H
 
diff --git a/net.c b/net.c
index 95022cc6a724a52eb242987d4df450ef1c79388a..88e463334524782ff4e725dfdd5232853a96f328 100644 (file)
--- a/net.c
+++ b/net.c
@@ -18,6 +18,7 @@
    limitations under the License.
 
 */
+
 #include "net.h"
 
 #include <arpa/inet.h>
diff --git a/net.h b/net.h
index edb54045eabe65816b18555345da0e46adf23c37..30c95c1e7778067789874a05a7f1e06d1d2072f5 100644 (file)
--- a/net.h
+++ b/net.h
@@ -18,6 +18,7 @@
    limitations under the License.
 
 */
+
 #ifndef _NET_H
 #define _NET_H
 
index 5df2a0e8d93dfb8caccbac286572db99dddb5b31..c346d631c4fa4c5d7d7168bdb6f1fe58688268c9 100644 (file)
--- a/nsjail.c
+++ b/nsjail.c
@@ -18,6 +18,7 @@
    limitations under the License.
 
 */
+
 #include "nsjail.h"
 
 #include <errno.h>
@@ -30,7 +31,6 @@
 #include <unistd.h>
 
 #include "cmdline.h"
-#include "common.h"
 #include "log.h"
 #include "net.h"
 #include "subproc.h"
index c8dcd338bcd2e1da7fa4fe6c1b412bebf168706b..a5d314568405838c2be15e6da7802357a1cea96a 100644 (file)
--- a/nsjail.h
+++ b/nsjail.h
@@ -23,4 +23,6 @@
 #ifndef _NSJAIL_H
 #define _NSJAIL_H
 
+#include "common.h"
+
 #endif                         /* _NSJAIL_H */
index fb1301c61f86e02ab3808a03e7fe7308d83cc529..27866bf609994e9aa9cc1fe808d909350b945310 100644 (file)
--- a/subproc.h
+++ b/subproc.h
@@ -18,6 +18,7 @@
    limitations under the License.
 
 */
+
 #ifndef _PROC_H
 #define _PROC_H
 
diff --git a/util.h b/util.h
index e1edde7e523ba7d609af42c6a58982170eb9b9a2..7e9d88a511dd8064275a4135e36e7a634636c55c 100644 (file)
--- a/util.h
+++ b/util.h
    limitations under the License.
 
 */
+
 #ifndef _UTIL_H
 #define _UTIL_H
 
 #include <stdbool.h>
 #include <stdlib.h>
 
+#include "common.h"
+
 void *utilMalloc(size_t sz);
 ssize_t utilWriteToFd(int fd, const void *buf, size_t len);
 ssize_t utilReadFromFd(int fd, void *buf, size_t len);