neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 157f544ac2149a985b0f62e9381a759c0ae252ec
parent 0393102249c30f62c8f061062bc4a9ba962b6910
Author: John Keeping <john@keeping.me.uk>
Date:   Thu, 13 Aug 2015 12:14:15 +0100

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>

Diffstat:
Mfilter.c | 6------
Mhtml.c | 6------
Mshared.c | 1-
Mui-plain.c | 1-
Mui-repolist.c | 1-
Mui-summary.c | 1-
6 files changed, 0 insertions(+), 16 deletions(-)

diff --git 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 @@ -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] = { diff --git 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; diff --git a/ui-plain.c b/ui-plain.c @@ -6,7 +6,6 @@ * (see COPYING for full license text) */ -#include <stdio.h> #include "cgit.h" #include "ui-plain.h" #include "html.h" diff --git a/ui-repolist.c b/ui-repolist.c @@ -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) { diff --git a/ui-summary.c b/ui-summary.c @@ -13,7 +13,6 @@ #include "ui-refs.h" #include "ui-blob.h" #include "ui-shared.h" -#include <libgen.h> static int urls;