summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-15 13:39:46 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-15 13:39:46 +0000
commit4e37e2d9079b4c1890a39f26e5082d6b1e7d0024 (patch)
tree5b64ed43985b5da8c60b1f7a672de75eb6e4e1fc /src
parentf2e700dd7c1eb7325d8ce51f7e35b652cceac151 (diff)
downloadconntrack-tools-4e37e2d9079b4c1890a39f26e5082d6b1e7d0024.tar.gz
conntrack-tools-4e37e2d9079b4c1890a39f26e5082d6b1e7d0024.zip
Max Kellermann <max@duempel.org>:
add missing function prototypes
Diffstat (limited to 'src')
-rw-r--r--src/cache_iterators.c1
-rw-r--r--src/cache_wt.c1
-rw-r--r--src/main.c4
-rw-r--r--src/netlink.c4
-rw-r--r--src/network.c1
-rw-r--r--src/run.c1
-rw-r--r--src/stats-mode.c2
-rw-r--r--src/sync-mode.c4
-rw-r--r--src/traffic_stats.c1
9 files changed, 15 insertions, 4 deletions
diff --git a/src/cache_iterators.c b/src/cache_iterators.c
index 85f87ab..d43ae6f 100644
--- a/src/cache_iterators.c
+++ b/src/cache_iterators.c
@@ -20,6 +20,7 @@
#include "jhash.h"
#include "hash.h"
#include "conntrackd.h"
+#include "netlink.h"
#include <libnetfilter_conntrack/libnetfilter_conntrack.h>
#include <errno.h>
#include "us-conntrack.h"
diff --git a/src/cache_wt.c b/src/cache_wt.c
index 2a9d8e7..fee17e2 100644
--- a/src/cache_wt.c
+++ b/src/cache_wt.c
@@ -16,6 +16,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "netlink.h"
#include <stdio.h>
#include "conntrackd.h"
#include "us-conntrack.h"
diff --git a/src/main.c b/src/main.c
index 19d999a..2497a7f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -61,10 +61,6 @@ void show_usage(char *progname)
fprintf(stdout, "%s\n", usage_options);
}
-/* These live in run.c */
-int init(void);
-void run(void);
-
void set_operation_mode(int *current, int want, char *argv[])
{
if (*current == NOT_SET) {
diff --git a/src/netlink.c b/src/netlink.c
index ab945d8..7800b10 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -16,7 +16,11 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "netlink.h"
#include "conntrackd.h"
+#include "traffic_stats.h"
+#include "ignore.h"
+#include "log.h"
#include <libnfnetlink/libnfnetlink.h>
#include <libnetfilter_conntrack/libnetfilter_conntrack.h>
#include <errno.h>
diff --git a/src/network.c b/src/network.c
index 8f1dc94..e7ffbac 100644
--- a/src/network.c
+++ b/src/network.c
@@ -20,6 +20,7 @@
#include "network.h"
#include "us-conntrack.h"
#include "sync.h"
+#include "log.h"
static unsigned int seq_set, cur_seq;
diff --git a/src/run.c b/src/run.c
index 8919b6c..7fbeaf5 100644
--- a/src/run.c
+++ b/src/run.c
@@ -19,6 +19,7 @@
*/
#include "conntrackd.h"
+#include "netlink.h"
#include <libnetfilter_conntrack/libnetfilter_conntrack.h>
#include <errno.h>
#include "us-conntrack.h"
diff --git a/src/stats-mode.c b/src/stats-mode.c
index de53751..0983b97 100644
--- a/src/stats-mode.c
+++ b/src/stats-mode.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "netlink.h"
+#include "traffic_stats.h"
#include <stdlib.h>
#include "cache.h"
#include "log.h"
diff --git a/src/sync-mode.c b/src/sync-mode.c
index c3630b6..8be8c18 100644
--- a/src/sync-mode.c
+++ b/src/sync-mode.c
@@ -16,6 +16,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "netlink.h"
+#include "traffic_stats.h"
+#include "log.h"
#include <stdlib.h>
#include "cache.h"
#include "conntrackd.h"
@@ -28,6 +31,7 @@
#include "sync.h"
#include "network.h"
#include "debug.h"
+#include <unistd.h>
static void do_mcast_handler_step(struct nethdr *net)
{
diff --git a/src/traffic_stats.c b/src/traffic_stats.c
index b510b77..b2cdaae 100644
--- a/src/traffic_stats.c
+++ b/src/traffic_stats.c
@@ -16,6 +16,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "traffic_stats.h"
#include "cache.h"
#include "hash.h"
#include "conntrackd.h"