]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
misc: remove unneeded headers
authorJason Ish <jason.ish@oisf.net>
Wed, 23 Oct 2024 15:52:18 +0000 (09:52 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 24 Oct 2024 07:35:26 +0000 (09:35 +0200)
Remove unneeded headers from worked on in previous commits, just
simple ones flagged by clangd.

src/app-layer-dnp3.c
src/app-layer-events.c
src/app-layer-htp.c
src/app-layer-smtp.c
src/app-layer-ssl.c
src/app-layer-tftp.c

index c2b1eb00fc53c161671f1ad7a7e58fc89f0268f9..c995667ee0e39cab3b6c8e6e9b8300cad6625be1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2015 Open Information Security Foundation
+/* Copyright (C) 2015-2024 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
 
 #include "suricata-common.h"
 #include "suricata.h"
-#include "stream.h"
-#include "util-byte.h"
 #include "util-unittest.h"
-#include "util-hashlist.h"
 
-#include "util-print.h"
 #include "util-spm-bs.h"
 #include "util-enum.h"
 
index 94554d2b98369dfb73ea285198fefbb159c718aa..eb32ea394671d91ce55e7434e790b9f01acbee78 100644 (file)
  * \author Anoop Saldanha <anoopsaldanha@gmail.com>
  */
 
-#include "suricata-common.h"
-#include "decode.h"
-#include "flow.h"
 #include "app-layer-events.h"
-#include "app-layer-parser.h"
 #include "util-enum.h"
 
 int SCAppLayerGetEventIdByName(const char *event_name, SCEnumCharMap *table, uint8_t *event_id)
index fa83aa2fed767dba2a68101f6c0491989825ece8..6d4193adb7531f839177894562e054c7baf8302e 100644 (file)
 #include "suricata-common.h"
 #include "conf.h"
 #include "decode.h"
-#include "threads.h"
-#include "counters.h"
 
 #include "util-print.h"
-#include "util-pool.h"
-#include "util-radix-tree.h"
-#include "util-file.h"
 #include "util-byte.h"
 
-#include "stream-tcp-private.h"
-#include "stream-tcp-reassemble.h"
 #include "stream-tcp.h"
-#include "stream.h"
 
 #include "app-layer-protos.h"
 #include "app-layer-parser.h"
-#include "app-layer-expectation.h"
 
 #include "app-layer.h"
 #include "app-layer-detect-proto.h"
 #include "app-layer-htp-range.h"
 #include "app-layer-htp-mem.h"
 
-#include "util-spm.h"
 #include "util-debug.h"
-#include "util-time.h"
 #include "util-misc.h"
-#include "util-enum.h"
 
 #include "util-unittest.h"
 #include "util-unittest-helper.h"
@@ -81,8 +69,6 @@
 #include "detect-engine-state.h"
 #include "detect-parse.h"
 
-#include "decode-events.h"
-
 #include "util-memcmp.h"
 #include "util-random.h"
 #include "util-validate.h"
index a19dd2beb99ef273d98350b7bb9e6893e7683606..ec4799605cbd36216bfe717d7a4d5102831b2da7 100644 (file)
 #include "suricata.h"
 #include "suricata-common.h"
 #include "decode.h"
-#include "threads.h"
 
-#include "stream-tcp-private.h"
-#include "stream-tcp-reassemble.h"
 #include "stream-tcp.h"
-#include "stream.h"
 
 #include "app-layer.h"
 #include "app-layer-detect-proto.h"
@@ -41,7 +37,6 @@
 #include "util-enum.h"
 #include "util-mpm.h"
 #include "util-debug.h"
-#include "util-print.h"
 #include "util-byte.h"
 #include "util-unittest.h"
 #include "util-unittest-helper.h"
@@ -53,7 +48,6 @@
 #include "detect-engine-build.h"
 #include "detect-parse.h"
 
-#include "decode-events.h"
 #include "conf.h"
 
 #include "util-mem.h"
index 58bfdfd918c67b536441f826000517711872a902..05ba2239b28123053451f4e54ef624172df61dda 100644 (file)
 
 #include "suricata-common.h"
 #include "decode.h"
-#include "threads.h"
-
-#include "stream-tcp-private.h"
-#include "stream-tcp-reassemble.h"
-#include "stream-tcp.h"
-#include "stream.h"
 
 #include "app-layer.h"
 #include "app-layer-detect-proto.h"
 #include "app-layer-frames.h"
 #include "app-layer-ssl.h"
 
-#include "decode-events.h"
 #include "conf.h"
 
 #include "feature.h"
 
-#include "util-spm.h"
-#include "util-unittest.h"
 #include "util-debug.h"
-#include "util-print.h"
-#include "util-pool.h"
-#include "util-byte.h"
 #include "util-ja3.h"
 #include "util-enum.h"
-#include "flow-util.h"
-#include "flow-private.h"
 #include "util-validate.h"
 
 SCEnumCharMap tls_frame_table[] = {
index 793eda8b23acdd2747233b96bbb99892d4679b56..4a9b41176af278f31c74faf87dbad060e34d3c3c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2017-2021 Open Information Security Foundation
+/* Copyright (C) 2017-2024 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
 
 #include "suricata-common.h"
 #include "suricata.h"
-#include "stream.h"
-#include "conf.h"
-
-#include "util-unittest.h"
 
 #include "app-layer.h"
 #include "app-layer-detect-proto.h"
 #include "app-layer-parser.h"
 
 #include "app-layer-tftp.h"
-#include "rust.h"
 
 /* The default port to probe if not provided in the configuration file. */
 #define TFTP_DEFAULT_PORT "69"