From: Philippe Antoine Date: Thu, 1 Aug 2024 18:50:28 +0000 (+0200) Subject: datasets: restrict scope of macro/enum X-Git-Tag: suricata-8.0.0-beta1~847 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1352ed68c77dd9cd7d9fa708d68e8ec787958258;p=thirdparty%2Fsuricata.git datasets: restrict scope of macro/enum --- 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;