From 1af7e26c52c85f3e11c5c1b9bf0099775d53c4b8 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Wed, 11 Aug 2010 20:02:06 +0200 Subject: [PATCH] Moved flood control stuff to the util package. --- GNUmakefile | 2 +- src/uhub.h | 2 +- src/{core => util}/floodctl.c | 0 src/{core => util}/floodctl.h | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename src/{core => util}/floodctl.c (100%) rename src/{core => util}/floodctl.h (100%) diff --git a/GNUmakefile b/GNUmakefile index 4299a5d..43223ed 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -136,7 +136,6 @@ libuhub_SOURCES := \ src/core/commands.c \ src/core/config.c \ src/core/eventqueue.c \ - src/core/floodctl.c \ src/core/hub.c \ src/core/hubevent.c \ src/core/hubio.c \ @@ -165,6 +164,7 @@ libadc_common_SOURCES := \ libutils_SOURCES := \ src/util/config_token.c \ src/util/credentials.c \ + src/util/floodctl.c \ src/util/ipcalc.c \ src/util/list.c \ src/util/log.c \ diff --git a/src/uhub.h b/src/uhub.h index 3e00a19..3c5e896 100644 --- a/src/uhub.h +++ b/src/uhub.h @@ -60,6 +60,7 @@ extern "C" { #include "util/config_token.h" #include "util/credentials.h" +#include "util/floodctl.h" #include "util/ipcalc.h" #include "util/list.h" #include "util/log.h" @@ -76,7 +77,6 @@ extern "C" { #include "core/auth.h" #include "core/config.h" -#include "core/floodctl.h" #include "core/eventid.h" #include "core/eventqueue.h" #include "core/netevent.h" diff --git a/src/core/floodctl.c b/src/util/floodctl.c similarity index 100% rename from src/core/floodctl.c rename to src/util/floodctl.c diff --git a/src/core/floodctl.h b/src/util/floodctl.h similarity index 100% rename from src/core/floodctl.h rename to src/util/floodctl.h