diff --git a/src/detect-classtype.c b/src/detect-classtype.c index ea4c921391..c27ad5dbf2 100644 --- a/src/detect-classtype.c +++ b/src/detect-classtype.c @@ -173,7 +173,7 @@ static int DetectClasstypeSetup(DetectEngineCtx *de_ctx, Signature *s, const cha */ bool update_ct = false; - if ((s->init_data->init_flags & SIG_FLAG_INIT_PRIO_EXPLICT) != 0) { + if ((s->init_data->init_flags & SIG_FLAG_INIT_PRIO_EXPLICIT) != 0) { /* don't touch Signature::prio */ update_ct = true; } else if (s->prio == -1) { diff --git a/src/detect-priority.c b/src/detect-priority.c index 2808be90c1..688eeed438 100644 --- a/src/detect-priority.c +++ b/src/detect-priority.c @@ -89,13 +89,13 @@ static int DetectPrioritySetup (DetectEngineCtx *de_ctx, Signature *s, const cha return -1; } - if (s->init_data->init_flags & SIG_FLAG_INIT_PRIO_EXPLICT) { + if (s->init_data->init_flags & SIG_FLAG_INIT_PRIO_EXPLICIT) { SCLogWarning("duplicate priority " "keyword. Using highest priority in the rule"); s->prio = MIN(s->prio, prio); } else { s->prio = prio; - s->init_data->init_flags |= SIG_FLAG_INIT_PRIO_EXPLICT; + s->init_data->init_flags |= SIG_FLAG_INIT_PRIO_EXPLICIT; } return 0; } diff --git a/src/detect.h b/src/detect.h index a41b74ed8c..ae0d5a3966 100644 --- a/src/detect.h +++ b/src/detect.h @@ -255,7 +255,8 @@ typedef struct DetectPort_ { #define SIG_FLAG_INIT_HAS_TRANSFORM BIT_U32(5) #define SIG_FLAG_INIT_STATE_MATCH BIT_U32(6) /**< signature has matches that require stateful inspection */ #define SIG_FLAG_INIT_NEED_FLUSH BIT_U32(7) -#define SIG_FLAG_INIT_PRIO_EXPLICT BIT_U32(8) /**< priority is explicitly set by the priority keyword */ +#define SIG_FLAG_INIT_PRIO_EXPLICIT \ + BIT_U32(8) /**< priority is explicitly set by the priority keyword */ #define SIG_FLAG_INIT_FILEDATA BIT_U32(9) /**< signature has filedata keyword */ #define SIG_FLAG_INIT_JA3 BIT_U32(10) /**< signature has ja3 keyword */