aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-23 17:44:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-23 17:44:04 +0000
commit71d52e806a4780d95eb0322544330e31a7a375d9 (patch)
tree15709221c847de6b85ebbb3ad020a29441b1cbfb /src/libutil
parent11021601e04634213a31df0c16aa4d1c064201ac (diff)
downloadrspamd-71d52e806a4780d95eb0322544330e31a7a375d9.tar.gz
rspamd-71d52e806a4780d95eb0322544330e31a7a375d9.zip
[Minor] Fix various style issues
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/addr.c1
-rw-r--r--src/libutil/logger.c3
-rw-r--r--src/libutil/map.c4
-rw-r--r--src/libutil/mem_pool.c1
-rw-r--r--src/libutil/multipattern.c6
-rw-r--r--src/libutil/printf.c2
6 files changed, 2 insertions, 15 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c
index c70946c09..fb4c537c4 100644
--- a/src/libutil/addr.c
+++ b/src/libutil/addr.c
@@ -18,7 +18,6 @@
#include "util.h"
#include "logger.h"
#include "cryptobox.h"
-#include "radix.h"
#include "unix-std.h"
/* pwd and grp */
#ifdef HAVE_PWD_H
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index 920c5231b..faab981d9 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -15,12 +15,9 @@
*/
#include "config.h"
#include "logger.h"
-#include "util.h"
#include "rspamd.h"
#include "map.h"
-#include "cryptobox.h"
#include "ottery.h"
-#include "keypair.h"
#include "unix-std.h"
#ifdef HAVE_SYSLOG_H
diff --git a/src/libutil/map.c b/src/libutil/map.c
index 11ef2c441..97a982797 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -22,10 +22,6 @@
#include "http.h"
#include "http_private.h"
#include "rspamd.h"
-#include "cryptobox.h"
-#include "unix-std.h"
-#include "http_parser.h"
-#include "libutil/regexp.h"
#include "contrib/zstd/zstd.h"
#ifdef WITH_HYPERSCAN
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c
index 1ee0558a1..187d3ca66 100644
--- a/src/libutil/mem_pool.c
+++ b/src/libutil/mem_pool.c
@@ -17,7 +17,6 @@
#include "mem_pool.h"
#include "fstring.h"
#include "logger.h"
-#include "utlist.h"
#include "ottery.h"
#include "unix-std.h"
diff --git a/src/libutil/multipattern.c b/src/libutil/multipattern.c
index 5f7e48daa..13a167cd1 100644
--- a/src/libutil/multipattern.c
+++ b/src/libutil/multipattern.c
@@ -17,13 +17,11 @@
#include "config.h"
#include "libutil/multipattern.h"
#include "libutil/str_util.h"
-#include "libutil/util.h"
-#include "libutil/printf.h"
#include "libcryptobox/cryptobox.h"
-#include "unix-std.h"
-#include "libutil/logger.h"
#ifdef WITH_HYPERSCAN
+#include "logger.h"
+#include "unix-std.h"
#include "hs.h"
#endif
#include "acism.h"
diff --git a/src/libutil/printf.c b/src/libutil/printf.c
index 6935c03b0..b86011b23 100644
--- a/src/libutil/printf.c
+++ b/src/libutil/printf.c
@@ -39,9 +39,7 @@
*/
#include "printf.h"
-#include "fstring.h"
#include "str_util.h"
-#include <math.h>
/**
* From FreeBSD libutil code