Blob Blame History Raw
From efadc8597bd9fa8b8c701e706242bb393fb92c29 Mon Sep 17 00:00:00 2001
From: Dave Love <dave.love@manchester.ac.uk>
Date: Mon, 15 May 2017 16:10:40 +0100
Subject: [PATCH] More config.h usage for C11

---
 src/lib/action/action.c             | 1 +
 src/lib/action/exec/exec.c          | 1 +
 src/lib/action/run/run.c            | 1 +
 src/lib/action/shell/shell.c        | 1 +
 src/lib/action/start/start.c        | 1 +
 src/lib/action/stop/stop.c          | 1 +
 src/lib/action/test/test.c          | 1 +
 src/lib/file/file-bind.c            | 1 +
 src/lib/file/file.c                 | 1 +
 src/lib/file/passwd/passwd.c        | 1 +
 src/lib/image-util.c                | 1 +
 src/lib/mount/binds/binds.c         | 1 +
 src/lib/mount/cwd/cwd.c             | 1 +
 src/lib/mount/dev/dev.c             | 1 +
 src/lib/mount/kernelfs/kernelfs.c   | 1 +
 src/lib/mount/mount-util.c          | 1 +
 src/lib/mount/mount.c               | 1 +
 src/lib/mount/scratch/scratch.c     | 1 +
 src/lib/mount/userbinds/userbinds.c | 1 +
 src/lib/rootfs/rootfs.c             | 1 +
 20 files changed, 20 insertions(+)

diff --git a/src/lib/action/action.c b/src/lib/action/action.c
index 02ec9a89..c2ec74a4 100644
--- a/src/lib/action/action.c
+++ b/src/lib/action/action.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/action/exec/exec.c b/src/lib/action/exec/exec.c
index 07c06221..52482c6c 100644
--- a/src/lib/action/exec/exec.c
+++ b/src/lib/action/exec/exec.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/action/run/run.c b/src/lib/action/run/run.c
index 5d6e19dd..4cd8f92b 100644
--- a/src/lib/action/run/run.c
+++ b/src/lib/action/run/run.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/action/shell/shell.c b/src/lib/action/shell/shell.c
index 7bb5c036..fe1eb25b 100644
--- a/src/lib/action/shell/shell.c
+++ b/src/lib/action/shell/shell.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/action/start/start.c b/src/lib/action/start/start.c
index 47782b56..7674e515 100644
--- a/src/lib/action/start/start.c
+++ b/src/lib/action/start/start.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/action/stop/stop.c b/src/lib/action/stop/stop.c
index 09e2fab7..613b55d5 100644
--- a/src/lib/action/stop/stop.c
+++ b/src/lib/action/stop/stop.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/action/test/test.c b/src/lib/action/test/test.c
index 93ff9839..0bcc6913 100644
--- a/src/lib/action/test/test.c
+++ b/src/lib/action/test/test.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/file/file-bind.c b/src/lib/file/file-bind.c
index c07bf466..cf8b4130 100644
--- a/src/lib/file/file-bind.c
+++ b/src/lib/file/file-bind.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/file/file.c b/src/lib/file/file.c
index 8d7ef884..fa5260d7 100644
--- a/src/lib/file/file.c
+++ b/src/lib/file/file.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/file/passwd/passwd.c b/src/lib/file/passwd/passwd.c
index 75f6d981..7a51d942 100644
--- a/src/lib/file/passwd/passwd.c
+++ b/src/lib/file/passwd/passwd.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/image-util.c b/src/lib/image-util.c
index 1b3c8bd4..687d6860 100644
--- a/src/lib/image-util.c
+++ b/src/lib/image-util.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/mount/binds/binds.c b/src/lib/mount/binds/binds.c
index 1a59e45e..561f5fc4 100644
--- a/src/lib/mount/binds/binds.c
+++ b/src/lib/mount/binds/binds.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/mount/cwd/cwd.c b/src/lib/mount/cwd/cwd.c
index 56f547df..e41fe143 100644
--- a/src/lib/mount/cwd/cwd.c
+++ b/src/lib/mount/cwd/cwd.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/mount/dev/dev.c b/src/lib/mount/dev/dev.c
index f2a20142..45448e56 100644
--- a/src/lib/mount/dev/dev.c
+++ b/src/lib/mount/dev/dev.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/mount/kernelfs/kernelfs.c b/src/lib/mount/kernelfs/kernelfs.c
index afee99dc..10591129 100644
--- a/src/lib/mount/kernelfs/kernelfs.c
+++ b/src/lib/mount/kernelfs/kernelfs.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/mount/mount-util.c b/src/lib/mount/mount-util.c
index 6879b65c..3a18b291 100644
--- a/src/lib/mount/mount-util.c
+++ b/src/lib/mount/mount-util.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/mount/mount.c b/src/lib/mount/mount.c
index 88c37772..d9bbab89 100644
--- a/src/lib/mount/mount.c
+++ b/src/lib/mount/mount.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/mount/scratch/scratch.c b/src/lib/mount/scratch/scratch.c
index 0808ca1e..d08d0ed2 100644
--- a/src/lib/mount/scratch/scratch.c
+++ b/src/lib/mount/scratch/scratch.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/mount/userbinds/userbinds.c b/src/lib/mount/userbinds/userbinds.c
index dc1a23ba..18b91df4 100644
--- a/src/lib/mount/userbinds/userbinds.c
+++ b/src/lib/mount/userbinds/userbinds.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/src/lib/rootfs/rootfs.c b/src/lib/rootfs/rootfs.c
index fab6bf0e..eca53144 100644
--- a/src/lib/rootfs/rootfs.c
+++ b/src/lib/rootfs/rootfs.c
@@ -18,6 +18,7 @@
  * 
 */
 
+#include "config.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
-- 
2.11.0