From 4cea7d9545ee642a96a2e5844a03074400cfa590 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 8 Sep 2022 05:03:29 +0200 Subject: sanitize #include-s --- CMakeLists.txt | 2 +- src/git.c | 3 ++- src/net.h | 1 - src/server.c | 1 - src/tcp_server.c | 1 + src/worker.c | 3 +-- 6 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 093593d..c82ef24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.3) # for include-what-you-use project(cimple VERSION 0.0.1 LANGUAGES C) diff --git a/src/git.c b/src/git.c index adf40e4..af4eb01 100644 --- a/src/git.c +++ b/src/git.c @@ -1,9 +1,10 @@ #include "git.h" -#include "file.h" #include "log.h" #include +#include + #define git_print_error(fn) \ do { \ const git_error *error = git_error_last(); \ diff --git a/src/net.h b/src/net.h index 0cbe141..305f590 100644 --- a/src/net.h +++ b/src/net.h @@ -3,7 +3,6 @@ #include #include -#include int net_bind(const char *port); int net_accept(int fd); diff --git a/src/server.c b/src/server.c index 8c2dbe6..19cce5f 100644 --- a/src/server.c +++ b/src/server.c @@ -10,7 +10,6 @@ #include #include #include -#include int server_create(struct server *server, const struct settings *settings) { diff --git a/src/tcp_server.c b/src/tcp_server.c index b536507..5ea021a 100644 --- a/src/tcp_server.c +++ b/src/tcp_server.c @@ -4,6 +4,7 @@ #include "signal.h" #include +#include #include #include diff --git a/src/worker.c b/src/worker.c index f107d7e..b422271 100644 --- a/src/worker.c +++ b/src/worker.c @@ -1,5 +1,6 @@ #include "worker.h" #include "ci.h" +#include "compiler.h" #include "const.h" #include "git.h" #include "log.h" @@ -8,8 +9,6 @@ #include "process.h" #include "signal.h" -#include -#include #include #include #include -- cgit v1.2.3