]> git.cameronkatri.com Git - cgit.git/commitdiff
Remove redundant includes
authorJohn Keeping <john@keeping.me.uk>
Thu, 13 Aug 2015 11:14:15 +0000 (12:14 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 13 Aug 2015 13:36:53 +0000 (15:36 +0200)
These are all included in git-compat-util.h (when necessary), which we
include in cgit.h.

Signed-off-by: John Keeping <john@keeping.me.uk>
filter.c
html.c
shared.c
ui-plain.c
ui-repolist.c
ui-summary.c

index ebf4937d24b9331703781b1d9fd01c6d512c767a..c7037a30ab82c4901b616dd056de94997a071f46 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -8,13 +8,7 @@
 
 #include "cgit.h"
 #include "html.h"
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
 #include <dlfcn.h>
-#include <errno.h>
 #ifndef NO_LUA
 #include <lua.h>
 #include <lualib.h>
diff --git a/html.c b/html.c
index 155cde58d26093114e4cca4d78fb20f29fdcc93b..a47cff07154d5701a7c84774ac68feb33337ee39 100644 (file)
--- a/html.c
+++ b/html.c
@@ -8,12 +8,6 @@
 
 #include "cgit.h"
 #include "html.h"
-#include <unistd.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <errno.h>
 
 /* Percent-encoding of each character, except: a-zA-Z0-9!$()*,./:;@- */
 static const char* url_escape_table[256] = {
index 0431b59baf519442e80fbbed13df4ea3bdb56097..3bd2a9e3dadd39282712f297218433cdfcdb34d1 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -7,7 +7,6 @@
  */
 
 #include "cgit.h"
-#include <stdio.h>
 
 struct cgit_repolist cgit_repolist;
 struct cgit_context ctx;
index b787bc3c776b01587c297a211cb1e3638eb6de66..3a2cb477ecd99e3ad317c0e72cfdbb98b34cb9d6 100644 (file)
@@ -6,7 +6,6 @@
  *   (see COPYING for full license text)
  */
 
-#include <stdio.h>
 #include "cgit.h"
 #include "ui-plain.h"
 #include "html.h"
index edefc4c713145c6f67515738cfe468a2959ee478..43253ed92c93e3a0597da3c3944b8f77793f9f68 100644 (file)
@@ -10,7 +10,6 @@
 #include "ui-repolist.h"
 #include "html.h"
 #include "ui-shared.h"
-#include <strings.h>
 
 static time_t read_agefile(char *path)
 {
index b0af0737a14762a808428829342ec42c3e6e743b..a5c70788104373b07fa9071e905541f7ef47c043 100644 (file)
@@ -13,7 +13,6 @@
 #include "ui-refs.h"
 #include "ui-blob.h"
 #include "ui-shared.h"
-#include <libgen.h>
 
 static int urls;