Skip to content

Commit

Permalink
misc: remove some unused includes
Browse files Browse the repository at this point in the history
Remove unused includes noticed while updating runmode access.
  • Loading branch information
jasonish authored and victorjulien committed Apr 25, 2024
1 parent d253736 commit ad4185b
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 59 deletions.
1 change: 0 additions & 1 deletion src/detect-engine-loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "threadvars.h"
#include "tm-threads.h"
#include "queue.h"
#include "util-signal.h"

#include "detect-engine-loader.h"
#include "detect-engine-build.h"
Expand Down
10 changes: 0 additions & 10 deletions src/detect-replace.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,19 @@
#include "detect.h"
#include "detect-parse.h"
#include "detect-content.h"
#include "detect-uricontent.h"
#include "detect-byte-extract.h"
#include "detect-replace.h"
#include "app-layer.h"

#include "detect-engine-mpm.h"
#include "detect-engine.h"
#include "detect-engine-state.h"
#include "detect-engine-build.h"

#include "util-checksum.h"

#include "util-unittest.h"
#include "util-unittest-helper.h"

#include "flow-var.h"

#include "util-debug.h"

#include "pkt-var.h"
#include "host.h"
#include "util-profiling.h"

static int DetectReplaceSetup(DetectEngineCtx *, Signature *, const char *);
#ifdef UNITTESTS
static void DetectReplaceRegisterTests(void);
Expand Down
9 changes: 0 additions & 9 deletions src/flow-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "tm-threads.h"
#include "runmodes.h"

#include "util-random.h"
#include "util-time.h"

#include "flow.h"
Expand All @@ -41,21 +40,13 @@
#include "flow-storage.h"
#include "flow-spare-pool.h"

#include "stream-tcp-reassemble.h"
#include "stream-tcp.h"

#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "util-device.h"

#include "util-debug.h"

#include "threads.h"
#include "detect.h"
#include "detect-engine-state.h"
#include "stream.h"

#include "app-layer-parser.h"

#include "host-timeout.h"
#include "defrag-timeout.h"
Expand Down
12 changes: 0 additions & 12 deletions src/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#include "decode.h"
#include "conf.h"
#include "threadvars.h"
#include "tm-threads.h"
#include "runmodes.h"

#include "util-random.h"
#include "util-time.h"
Expand All @@ -41,17 +39,13 @@
#include "flow-queue.h"
#include "flow-hash.h"
#include "flow-util.h"
#include "flow-var.h"
#include "flow-private.h"
#include "flow-timeout.h"
#include "flow-manager.h"
#include "flow-storage.h"
#include "flow-bypass.h"
#include "flow-spare-pool.h"

#include "stream-tcp-private.h"
#include "stream-tcp-reassemble.h"
#include "stream-tcp.h"

#include "util-unittest.h"
#include "util-unittest-helper.h"
Expand All @@ -60,12 +54,6 @@
#include "util-macset.h"

#include "util-debug.h"
#include "util-privs.h"
#include "util-validate.h"

#include "detect.h"
#include "detect-engine-state.h"
#include "stream.h"

#include "app-layer-parser.h"
#include "app-layer-expectation.h"
Expand Down
1 change: 0 additions & 1 deletion src/log-pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
#include "util-datalink.h"
#include "util-misc.h"
#include "util-path.h"
#include "util-profiling.h"
#include "util-time.h"

#define DEFAULT_LOG_FILENAME "pcaplog"
Expand Down
9 changes: 0 additions & 9 deletions src/output-json.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@
*/

#include "suricata-common.h"
#include "detect.h"
#include "flow.h"
#include "conf.h"

#include "threads.h"
#include "tm-threads.h"
#include "threadvars.h"
#include "util-debug.h"
#include "util-time.h"
#include "util-var-name.h"
Expand All @@ -40,11 +36,7 @@
#include "util-unittest.h"
#include "util-unittest-helper.h"

#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-reference.h"
#include "app-layer-parser.h"
#include "util-classification-config.h"
#include "util-syslog.h"

Expand All @@ -56,7 +48,6 @@
#include "output-json.h"

#include "util-byte.h"
#include "util-privs.h"
#include "util-print.h"
#include "util-proto-name.h"
#include "util-optimize.h"
Expand Down
12 changes: 0 additions & 12 deletions src/runmodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,11 @@
*/

#include "suricata-common.h"
#include "detect.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "app-layer-parser.h"
#include "tm-threads.h"
#include "util-debug.h"
#include "util-time.h"
#include "util-cpu.h"
#include "util-byte.h"
#include "util-affinity.h"
#include "conf.h"
#include "queue.h"
#include "runmodes.h"
#include "runmode-af-packet.h"
#include "runmode-af-xdp.h"
Expand All @@ -57,11 +50,6 @@

#include "output.h"

#include "alert-fastlog.h"
#include "alert-debuglog.h"

#include "log-httplog.h"

#include "source-pfring.h"

#include "tmqh-flow.h"
Expand Down
1 change: 0 additions & 1 deletion src/util-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "suricata.h"
#include "util-dpdk.h"
#include "util-debug.h"
#include "util-byte.h"

void DPDKCleanupEAL(void)
{
Expand Down
1 change: 0 additions & 1 deletion src/util-privs.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <sys/prctl.h>
#endif
#include "threadvars.h"
#include "util-cpu.h"
#include "runmodes.h"

/** flag indicating if we'll be using caps */
Expand Down
1 change: 0 additions & 1 deletion src/util-reference-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "util-reference-config.h"
#include "conf.h"
#include "util-unittest.h"
#include "util-error.h"
#include "util-debug.h"
#include "util-fmemopen.h"

Expand Down
2 changes: 0 additions & 2 deletions src/util-threshold-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "detect.h"
#include "detect-engine.h"
#include "detect-engine-address.h"
#include "detect-engine-threshold.h"
#include "detect-threshold.h"
#include "detect-parse.h"
#include "detect-engine-build.h"
Expand All @@ -47,7 +46,6 @@
#include "util-unittest-helper.h"
#include "util-byte.h"
#include "util-time.h"
#include "util-error.h"
#include "util-debug.h"
#include "util-fmemopen.h"

Expand Down

0 comments on commit ad4185b

Please sign in to comment.