From: Jeff Lucovsky Date: Sat, 21 Dec 2019 16:12:30 +0000 (-0500) Subject: detect: Fix typos/spelling errors. X-Git-Tag: suricata-6.0.0-beta1~728 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cddbc085b0a900680df6478cb7814e3b6f7938e;p=thirdparty%2Fsuricata.git detect: Fix typos/spelling errors. --- diff --git a/src/detect-engine.c b/src/detect-engine.c index 98fa0975d3..8eb16dffd9 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -1812,7 +1812,7 @@ static int DetectEngineReloadThreads(DetectEngineCtx *new_de_ctx) } BUG_ON(i != no_of_detect_tvs); - /* atomicly replace the det_ctx data */ + /* atomically replace the det_ctx data */ i = 0; for (ThreadVars *tv = tv_root[TVT_PPT]; tv != NULL; tv = tv->next) { if ((tv->tmm_flags & TM_FLAG_DETECT_TM) == 0) { @@ -2096,7 +2096,7 @@ void DetectEngineCtxFree(DetectEngineCtx *de_ctx) /** \brief Function that load DetectEngineCtx config for grouping sigs * used by the engine * \retval 0 if no config provided, 1 if config was provided - * and loaded successfuly + * and loaded successfully */ static int DetectEngineCtxLoadConf(DetectEngineCtx *de_ctx) { @@ -2713,7 +2713,7 @@ static TmEcode ThreadCtxDoInit (DetectEngineCtx *de_ctx, DetectEngineThreadCtx * * \param data[out] pointer to store our thread detection ctx * * \retval TM_ECODE_OK if all went well - * \retval TM_ECODE_FAILED on serious erro + * \retval TM_ECODE_FAILED on serious errors */ TmEcode DetectEngineThreadCtxInit(ThreadVars *tv, void *initdata, void **data) { diff --git a/src/detect.h b/src/detect.h index 39de33e2b2..404005bb0d 100644 --- a/src/detect.h +++ b/src/detect.h @@ -334,7 +334,7 @@ struct DetectEngineThreadCtx_;// DetectEngineThreadCtx; /* inspection buffer is a simple structure that is passed between prefilter, * transformation functions and inspection functions. - * Initialy setup with 'orig' ptr and len, transformations can then take + * Initially setup with 'orig' ptr and len, transformations can then take * then and fill the 'buf'. Multiple transformations can update the buffer, * both growing and shrinking it. * Prefilter and inspection will only deal with 'inspect'. */ @@ -502,7 +502,7 @@ typedef struct SignatureInitData_ { int transform_cnt; /** score to influence rule grouping. A higher value leads to a higher - * likelyhood of a rulegroup with this sig ending up as a contained + * likelihood of a rulegroup with this sig ending up as a contained * group. */ int whitelist; @@ -900,7 +900,7 @@ typedef struct DetectEngineCtx_ { /** id of loader thread 'owning' this de_ctx */ int loader_id; - /** are we useing just mpm or also other prefilters */ + /** are we using just mpm or also other prefilters */ enum DetectEnginePrefilterSetting prefilter_setting; HashListTable *dport_hash_table; @@ -1002,7 +1002,7 @@ typedef struct RuleMatchCandidateTx { */ typedef struct DetectEngineThreadCtx_ { /** \note multi-tenant hash lookup code from Detect() *depends* - * on this beeing the first member */ + * on this being the first member */ uint32_t tenant_id; /** ticker that is incremented once per packet. */