diff options
author | John Keeping | 2015-08-13 12:14:15 +0100 |
---|---|---|
committer | Jason A. Donenfeld | 2015-08-13 15:36:53 +0200 |
commit | 157f544ac2149a985b0f62e9381a759c0ae252ec (patch) | |
tree | 68766706061955341ef25a00f902edcf8763ebc7 | |
parent | 0393102249c30f62c8f061062bc4a9ba962b6910 (diff) | |
download | cgit-157f544ac2149a985b0f62e9381a759c0ae252ec.tar.gz cgit-157f544ac2149a985b0f62e9381a759c0ae252ec.tar.bz2 cgit-157f544ac2149a985b0f62e9381a759c0ae252ec.zip |
Remove redundant includes
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>
-rw-r--r-- | filter.c | 6 | ||||
-rw-r--r-- | html.c | 6 | ||||
-rw-r--r-- | shared.c | 1 | ||||
-rw-r--r-- | ui-plain.c | 1 | ||||
-rw-r--r-- | ui-repolist.c | 1 | ||||
-rw-r--r-- | ui-summary.c | 1 |
6 files changed, 0 insertions, 16 deletions
@@ -8,13 +8,7 @@ | |||
8 | 8 | ||
9 | #include "cgit.h" | 9 | #include "cgit.h" |
10 | #include "html.h" | 10 | #include "html.h" |
11 | #include <sys/types.h> | ||
12 | #include <sys/wait.h> | ||
13 | #include <unistd.h> | ||
14 | #include <string.h> | ||
15 | #include <stdlib.h> | ||
16 | #include <dlfcn.h> | 11 | #include <dlfcn.h> |
17 | #include <errno.h> | ||
18 | #ifndef NO_LUA | 12 | #ifndef NO_LUA |
19 | #include <lua.h> | 13 | #include <lua.h> |
20 | #include <lualib.h> | 14 | #include <lualib.h> |
@@ -8,12 +8,6 @@ | |||
8 | 8 | ||
9 | #include "cgit.h" | 9 | #include "cgit.h" |
10 | #include "html.h" | 10 | #include "html.h" |
11 | #include <unistd.h> | ||
12 | #include <stdio.h> | ||
13 | #include <stdlib.h> | ||
14 | #include <stdarg.h> | ||
15 | #include <string.h> | ||
16 | #include <errno.h> | ||
17 | 11 | ||
18 | /* Percent-encoding of each character, except: a-zA-Z0-9!$()*,./:;@- */ | 12 | /* Percent-encoding of each character, except: a-zA-Z0-9!$()*,./:;@- */ |
19 | static const char* url_escape_table[256] = { | 13 | static const char* url_escape_table[256] = { |
@@ -7,7 +7,6 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "cgit.h" | 9 | #include "cgit.h" |
10 | #include <stdio.h> | ||
11 | 10 | ||
12 | struct cgit_repolist cgit_repolist; | 11 | struct cgit_repolist cgit_repolist; |
13 | struct cgit_context ctx; | 12 | struct cgit_context ctx; |
@@ -6,7 +6,6 @@ | |||
6 | * (see COPYING for full license text) | 6 | * (see COPYING for full license text) |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <stdio.h> | ||
10 | #include "cgit.h" | 9 | #include "cgit.h" |
11 | #include "ui-plain.h" | 10 | #include "ui-plain.h" |
12 | #include "html.h" | 11 | #include "html.h" |
diff --git a/ui-repolist.c b/ui-repolist.c index edefc4c..43253ed 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -10,7 +10,6 @@ | |||
10 | #include "ui-repolist.h" | 10 | #include "ui-repolist.h" |
11 | #include "html.h" | 11 | #include "html.h" |
12 | #include "ui-shared.h" | 12 | #include "ui-shared.h" |
13 | #include <strings.h> | ||
14 | 13 | ||
15 | static time_t read_agefile(char *path) | 14 | static time_t read_agefile(char *path) |
16 | { | 15 | { |
diff --git a/ui-summary.c b/ui-summary.c index b0af073..a5c7078 100644 --- a/ui-summary.c +++ b/ui-summary.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include "ui-refs.h" | 13 | #include "ui-refs.h" |
14 | #include "ui-blob.h" | 14 | #include "ui-blob.h" |
15 | #include "ui-shared.h" | 15 | #include "ui-shared.h" |
16 | #include <libgen.h> | ||
17 | 16 | ||
18 | static int urls; | 17 | static int urls; |
19 | 18 | ||