From f08b3d684d761560969b70de99f309bbd60d7b2e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 29 Dec 2013 14:32:43 +0000 Subject: [PATCH] Add some missing includes. Letting .c files include their "own" header file guarantees that the declaration in the header file stays in sync with the definition. Eventually we may even enable gcc's -Wmissing-declarations, but we're not there yet, mainly due to command handlers, init functions and completers. Note that including signal.h in signal.c required two other includes since the header file defines a task structure. --- acl.c | 1 + chunk_queue.c | 1 + close_on_fork.c | 1 + mood.c | 1 + signal.c | 3 +++ version.c | 1 + write_common.c | 1 + 7 files changed, 9 insertions(+) diff --git a/acl.c b/acl.c index e70ab9b3..b5da7467 100644 --- a/acl.c +++ b/acl.c @@ -13,6 +13,7 @@ #include "string.h" #include "list.h" #include "net.h" +#include "acl.h" /** * Describes one entry in the blacklist/whitelist of a paraslash sender. diff --git a/chunk_queue.c b/chunk_queue.c index c870d4d2..5dc59cbd 100644 --- a/chunk_queue.c +++ b/chunk_queue.c @@ -13,6 +13,7 @@ #include "afh.h" #include "string.h" #include "error.h" +#include "chunk_queue.h" /** * Senders may use the chunk queue facility to deal with laggy connections. It diff --git a/close_on_fork.c b/close_on_fork.c index 37f727e2..008a0937 100644 --- a/close_on_fork.c +++ b/close_on_fork.c @@ -11,6 +11,7 @@ #include "para.h" #include "list.h" #include "string.h" +#include "close_on_fork.h" static struct list_head close_on_fork_list; static int initialized; diff --git a/mood.c b/mood.c index c0ec9f67..55eb41c0 100644 --- a/mood.c +++ b/mood.c @@ -18,6 +18,7 @@ #include "ipc.h" #include "mm.h" #include "sideband.h" +#include "mood.h" /** * Contains statistical data of the currently admissible audio files. diff --git a/signal.c b/signal.c index 3b202a2c..eef68c11 100644 --- a/signal.c +++ b/signal.c @@ -11,6 +11,9 @@ #include "para.h" #include "error.h" #include "fd.h" +#include "list.h" +#include "sched.h" +#include "signal.h" static int signal_pipe[2]; diff --git a/version.c b/version.c index f8f7e6a3..de03e935 100644 --- a/version.c +++ b/version.c @@ -7,6 +7,7 @@ /** \file version.c Some helpers for printing version and copyright strings. */ #include "para.h" +#include "version.h" /** \file version.h Macros for printing the version string. */ diff --git a/write_common.c b/write_common.c index 33ef8be6..9e9405d5 100644 --- a/write_common.c +++ b/write_common.c @@ -16,6 +16,7 @@ #include "buffer_tree.h" #include "write.h" #include "error.h" +#include "write_common.h" /** the array containing the names of all supported writers */ const char *writer_names[] ={WRITER_NAMES}; -- 2.39.2