From: Philippe Antoine Date: Thu, 1 Aug 2024 18:50:28 +0000 (+0200) Subject: datasets: restrict scope of macro/enum X-Git-Tag: suricata-7.0.7~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96d5c81aed01f2bc0cd3e2e60057d0deb38caa99;p=thirdparty%2Fsuricata.git datasets: restrict scope of macro/enum (cherry picked from commit 1352ed68c77dd9cd7d9fa708d68e8ec787958258) --- diff --git a/src/detect-dataset.c b/src/detect-dataset.c index 69eaf81113..e174b0ab90 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 ca83267d15..d24355299b 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;