From e52eb9e91481f7dd81abdfc9b7a88c68fe3f2d41 Mon Sep 17 00:00:00 2001
From: "Rafael G. Martins" <rafael@rafaelmartins.eng.br>
Date: Fri, 7 Oct 2016 02:06:15 +0200
Subject: *: fixed includes

---
 src/blogc-git-receiver/pre-receive.c          | 3 ---
 src/blogc-git-receiver/shell-command-parser.c | 1 +
 src/blogc-git-receiver/shell.c                | 2 --
 src/blogc-runserver/httpd-utils.c             | 4 ----
 src/blogc-runserver/httpd.c                   | 4 ----
 src/blogc-runserver/main.c                    | 1 -
 src/blogc-runserver/mime.c                    | 4 ----
 src/blogc/loader.c                            | 1 -
 src/common/config-parser.c                    | 5 +----
 src/common/config-parser.h                    | 1 +
 src/common/file.c                             | 1 -
 src/common/stdin.c                            | 1 +
 12 files changed, 4 insertions(+), 24 deletions(-)

(limited to 'src')

diff --git a/src/blogc-git-receiver/pre-receive.c b/src/blogc-git-receiver/pre-receive.c
index ca239da..9bfc8a7 100644
--- a/src/blogc-git-receiver/pre-receive.c
+++ b/src/blogc-git-receiver/pre-receive.c
@@ -6,12 +6,9 @@
  * See the file LICENSE.
  */
 
-#include <stdbool.h>
-#include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <libgen.h>
 #include <unistd.h>
 #include <errno.h>
 #include <sys/stat.h>
diff --git a/src/blogc-git-receiver/shell-command-parser.c b/src/blogc-git-receiver/shell-command-parser.c
index cc8c537..0c867b8 100644
--- a/src/blogc-git-receiver/shell-command-parser.c
+++ b/src/blogc-git-receiver/shell-command-parser.c
@@ -6,6 +6,7 @@
  * See the file LICENSE.
  */
 
+#include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
 #include "../common/utils.h"
diff --git a/src/blogc-git-receiver/shell.c b/src/blogc-git-receiver/shell.c
index 581ec3d..34aa3f2 100644
--- a/src/blogc-git-receiver/shell.c
+++ b/src/blogc-git-receiver/shell.c
@@ -6,7 +6,6 @@
  * See the file LICENSE.
  */
 
-#include <stdbool.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -14,7 +13,6 @@
 #include <unistd.h>
 #include <errno.h>
 #include <sys/stat.h>
-#include <sys/types.h>
 #include "../common/utils.h"
 #include "shell-command-parser.h"
 #include "shell.h"
diff --git a/src/blogc-runserver/httpd-utils.c b/src/blogc-runserver/httpd-utils.c
index 8d9c024..37e12f4 100644
--- a/src/blogc-runserver/httpd-utils.c
+++ b/src/blogc-runserver/httpd-utils.c
@@ -6,10 +6,6 @@
  * See the file LICENSE.
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif /* HAVE_CONFIG_H */
-
 #include <stdbool.h>
 #include <string.h>
 #include <unistd.h>
diff --git a/src/blogc-runserver/httpd.c b/src/blogc-runserver/httpd.c
index c2fd259..195bad0 100644
--- a/src/blogc-runserver/httpd.c
+++ b/src/blogc-runserver/httpd.c
@@ -6,10 +6,6 @@
  * See the file LICENSE.
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif /* HAVE_CONFIG_H */
-
 #include <errno.h>
 #include <stdio.h>
 #include <stdbool.h>
diff --git a/src/blogc-runserver/main.c b/src/blogc-runserver/main.c
index afc9db6..4563a66 100644
--- a/src/blogc-runserver/main.c
+++ b/src/blogc-runserver/main.c
@@ -13,7 +13,6 @@
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include "../common/utils.h"
 #include "httpd.h"
 
diff --git a/src/blogc-runserver/mime.c b/src/blogc-runserver/mime.c
index b42d70a..8145f5b 100644
--- a/src/blogc-runserver/mime.c
+++ b/src/blogc-runserver/mime.c
@@ -6,10 +6,6 @@
  * See the file LICENSE.
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif /* HAVE_CONFIG_H */
-
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
diff --git a/src/blogc/loader.c b/src/blogc/loader.c
index c3e1a4a..bca0000 100644
--- a/src/blogc/loader.c
+++ b/src/blogc/loader.c
@@ -9,7 +9,6 @@
 #include <math.h>
 #include <stdbool.h>
 #include <stddef.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include "source-parser.h"
diff --git a/src/common/config-parser.c b/src/common/config-parser.c
index 9361908..e847623 100644
--- a/src/common/config-parser.c
+++ b/src/common/config-parser.c
@@ -6,10 +6,7 @@
  * See the file LICENSE.
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif /* HAVE_CONFIG_H */
-
+#include <stdbool.h>
 #include <stdlib.h>
 #include "error.h"
 #include "utils.h"
diff --git a/src/common/config-parser.h b/src/common/config-parser.h
index 0d30c49..f9f287c 100644
--- a/src/common/config-parser.h
+++ b/src/common/config-parser.h
@@ -9,6 +9,7 @@
 #ifndef _CONFIG_PARSER_H
 #define _CONFIG_PARSER_H
 
+#include <stddef.h>
 #include "utils.h"
 #include "error.h"
 
diff --git a/src/common/file.c b/src/common/file.c
index 47c97af..36f6ee4 100644
--- a/src/common/file.c
+++ b/src/common/file.c
@@ -7,7 +7,6 @@
  */
 
 #include <errno.h>
-#include <stdarg.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
diff --git a/src/common/stdin.c b/src/common/stdin.c
index 2664c3e..345b021 100644
--- a/src/common/stdin.c
+++ b/src/common/stdin.c
@@ -6,6 +6,7 @@
  * See the file LICENSE.
  */
 
+#include <stdbool.h>
 #include <stdio.h>
 #include "utils.h"
 #include "stdin.h"
-- 
cgit v1.2.3-18-g5258