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>
This commit is contained in:
John Keeping 2015-08-13 12:14:15 +01:00 zatwierdzone przez Jason A. Donenfeld
rodzic 0393102249
commit 157f544ac2
6 zmienionych plików z 0 dodań i 16 usunięć

Wyświetl plik

@ -8,13 +8,7 @@
#include "cgit.h" #include "cgit.h"
#include "html.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 <dlfcn.h>
#include <errno.h>
#ifndef NO_LUA #ifndef NO_LUA
#include <lua.h> #include <lua.h>
#include <lualib.h> #include <lualib.h>

6
html.c
Wyświetl plik

@ -8,12 +8,6 @@
#include "cgit.h" #include "cgit.h"
#include "html.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!$()*,./:;@- */ /* Percent-encoding of each character, except: a-zA-Z0-9!$()*,./:;@- */
static const char* url_escape_table[256] = { static const char* url_escape_table[256] = {

Wyświetl plik

@ -7,7 +7,6 @@
*/ */
#include "cgit.h" #include "cgit.h"
#include <stdio.h>
struct cgit_repolist cgit_repolist; struct cgit_repolist cgit_repolist;
struct cgit_context ctx; struct cgit_context ctx;

Wyświetl plik

@ -6,7 +6,6 @@
* (see COPYING for full license text) * (see COPYING for full license text)
*/ */
#include <stdio.h>
#include "cgit.h" #include "cgit.h"
#include "ui-plain.h" #include "ui-plain.h"
#include "html.h" #include "html.h"

Wyświetl plik

@ -10,7 +10,6 @@
#include "ui-repolist.h" #include "ui-repolist.h"
#include "html.h" #include "html.h"
#include "ui-shared.h" #include "ui-shared.h"
#include <strings.h>
static time_t read_agefile(char *path) static time_t read_agefile(char *path)
{ {

Wyświetl plik

@ -13,7 +13,6 @@
#include "ui-refs.h" #include "ui-refs.h"
#include "ui-blob.h" #include "ui-blob.h"
#include "ui-shared.h" #include "ui-shared.h"
#include <libgen.h>
static int urls; static int urls;