about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJohn Keeping2015-08-13 12:14:15 +0100
committerJason A. Donenfeld2015-08-13 15:36:53 +0200
commit157f544ac2149a985b0f62e9381a759c0ae252ec (patch)
tree68766706061955341ef25a00f902edcf8763ebc7
parentMakefile: include Git's config.mak.uname (diff)
downloadcgit-157f544ac2149a985b0f62e9381a759c0ae252ec.tar.gz
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.c6
-rw-r--r--html.c6
-rw-r--r--shared.c1
-rw-r--r--ui-plain.c1
-rw-r--r--ui-repolist.c1
-rw-r--r--ui-summary.c1
6 files changed, 0 insertions, 16 deletions
diff --git a/filter.c b/filter.c index ebf4937..c7037a3 100644 --- a/filter.c +++ b/filter.c
@@ -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>
diff --git a/html.c b/html.c index 155cde5..a47cff0 100644 --- a/html.c +++ b/html.c
@@ -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!$()*,./:;@- */
19static const char* url_escape_table[256] = { 13static const char* url_escape_table[256] = {
diff --git a/shared.c b/shared.c index 0431b59..3bd2a9e 100644 --- a/shared.c +++ b/shared.c
@@ -7,7 +7,6 @@
7 */ 7 */
8 8
9#include "cgit.h" 9#include "cgit.h"
10#include <stdio.h>
11 10
12struct cgit_repolist cgit_repolist; 11struct cgit_repolist cgit_repolist;
13struct cgit_context ctx; 12struct cgit_context ctx;
diff --git a/ui-plain.c b/ui-plain.c index b787bc3..3a2cb47 100644 --- a/ui-plain.c +++ b/ui-plain.c
@@ -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
15static time_t read_agefile(char *path) 14static 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
18static int urls; 17static int urls;
19 18