From e38fa7df2e53c731d664f1851fa754ac35f0400c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 13 Jun 2023 02:04:55 +0200 Subject: sanitize #include-s --- src/client.c | 1 - src/client_main.c | 2 +- src/command.c | 1 + src/event_loop.h | 2 -- src/file.c | 1 - src/msg.c | 2 -- src/server_main.c | 2 +- src/signal.c | 2 +- src/storage.c | 2 ++ src/tcp_server.c | 1 + src/worker_main.c | 2 +- 11 files changed, 8 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/client.c b/src/client.c index d7c1b58..b783afe 100644 --- a/src/client.c +++ b/src/client.c @@ -9,7 +9,6 @@ #include "compiler.h" #include "log.h" #include "msg.h" -#include "net.h" #include diff --git a/src/client_main.c b/src/client_main.c index 287a5cb..1969952 100644 --- a/src/client_main.c +++ b/src/client_main.c @@ -10,7 +10,7 @@ #include "const.h" #include -#include +#include static struct settings default_settings(void) { diff --git a/src/command.c b/src/command.c index f629fde..e3a7773 100644 --- a/src/command.c +++ b/src/command.c @@ -11,6 +11,7 @@ #include "log.h" #include "msg.h" +#include #include #include diff --git a/src/event_loop.h b/src/event_loop.h index 5273cc6..0e13b48 100644 --- a/src/event_loop.h +++ b/src/event_loop.h @@ -8,8 +8,6 @@ #ifndef __EVENT_LOOP_H__ #define __EVENT_LOOP_H__ -#include - struct event_loop; int event_loop_create(struct event_loop **); diff --git a/src/file.c b/src/file.c index f40f849..5c36b77 100644 --- a/src/file.c +++ b/src/file.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include diff --git a/src/msg.c b/src/msg.c index 3975a0c..0de8a13 100644 --- a/src/msg.c +++ b/src/msg.c @@ -9,10 +9,8 @@ #include "log.h" #include "net.h" -#include #include #include -#include struct msg { size_t argc; diff --git a/src/server_main.c b/src/server_main.c index be2639f..5a0531b 100644 --- a/src/server_main.c +++ b/src/server_main.c @@ -10,7 +10,7 @@ #include "server.h" #include -#include +#include static struct settings default_settings(void) { diff --git a/src/signal.c b/src/signal.c index d8f89bd..d155e06 100644 --- a/src/signal.c +++ b/src/signal.c @@ -11,10 +11,10 @@ #include "file.h" #include "log.h" +#include #include #include #include -#include static int stop_signals[] = {SIGINT, SIGTERM, SIGQUIT}; diff --git a/src/storage.c b/src/storage.c index c60ddee..b7f74e5 100644 --- a/src/storage.c +++ b/src/storage.c @@ -9,6 +9,8 @@ #include "log.h" #include "storage_sqlite.h" +#include + typedef void (*storage_settings_destroy_t)(const struct storage_settings *); typedef int (*storage_create_t)(struct storage *, const struct storage_settings *); typedef void (*storage_destroy_t)(struct storage *); diff --git a/src/tcp_server.c b/src/tcp_server.c index ba310a8..59790b8 100644 --- a/src/tcp_server.c +++ b/src/tcp_server.c @@ -12,6 +12,7 @@ #include "net.h" #include "signal.h" +#include #include #include #include diff --git a/src/worker_main.c b/src/worker_main.c index dcfee47..1bb3289 100644 --- a/src/worker_main.c +++ b/src/worker_main.c @@ -10,7 +10,7 @@ #include "worker.h" #include -#include +#include static struct settings default_settings(void) { -- cgit v1.2.3