From 1352ed68c77dd9cd7d9fa708d68e8ec787958258 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Thu, 1 Aug 2024 20:50:28 +0200 Subject: [PATCH] datasets: restrict scope of macro/enum --- src/detect-dataset.c | 5 +++++ src/detect-dataset.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/detect-dataset.c b/src/detect-dataset.c index 1fc145267f..5e96b9f27d 100644 --- a/src/detect-dataset.c +++ b/src/detect-dataset.c @@ -41,6 +41,11 @@ #include "util-path.h" #include "util-conf.h" +#define DETECT_DATASET_CMD_SET 0 +#define DETECT_DATASET_CMD_UNSET 1 +#define DETECT_DATASET_CMD_ISNOTSET 2 +#define DETECT_DATASET_CMD_ISSET 3 + int DetectDatasetMatch (ThreadVars *, DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *); static int DetectDatasetSetup (DetectEngineCtx *, Signature *, const char *); diff --git a/src/detect-dataset.h b/src/detect-dataset.h index 4dae4a4a17..047a5b11cb 100644 --- a/src/detect-dataset.h +++ b/src/detect-dataset.h @@ -26,11 +26,6 @@ #include "datasets.h" -#define DETECT_DATASET_CMD_SET 0 -#define DETECT_DATASET_CMD_UNSET 1 -#define DETECT_DATASET_CMD_ISNOTSET 2 -#define DETECT_DATASET_CMD_ISSET 3 - typedef struct DetectDatasetData_ { Dataset *set; uint8_t cmd;