src: remove unused struct fields

Even if they get defined
pull/12358/head
Philippe Antoine 2 years ago committed by Victor Julien
parent c56b741088
commit 954553f1ae

@ -3303,7 +3303,6 @@ static TmEcode ThreadCtxDoInit (DetectEngineCtx *de_ctx, DetectEngineThreadCtx *
if (det_ctx->base64_decoded == NULL) { if (det_ctx->base64_decoded == NULL) {
return TM_ECODE_FAILED; return TM_ECODE_FAILED;
} }
det_ctx->base64_decoded_len_max = de_ctx->base64_decode_max_len;
det_ctx->base64_decoded_len = 0; det_ctx->base64_decoded_len = 0;
} }

@ -1139,7 +1139,6 @@ typedef struct DetectEngineThreadCtx_ {
uint8_t *base64_decoded; uint8_t *base64_decoded;
int base64_decoded_len; int base64_decoded_len;
int base64_decoded_len_max;
/* counter for the filestore array below -- up here for cache reasons. */ /* counter for the filestore array below -- up here for cache reasons. */
uint16_t filestore_cnt; uint16_t filestore_cnt;

@ -44,7 +44,6 @@ typedef struct PcapFileDirectoryVars_
PcapFileFileVars *current_file; PcapFileFileVars *current_file;
bool should_loop; bool should_loop;
bool should_recurse; bool should_recurse;
uint8_t cur_dir_depth;
time_t delay; time_t delay;
time_t poll_interval; time_t poll_interval;

@ -319,7 +319,6 @@ TmEcode ReceivePcapFileThreadInit(ThreadVars *tv, const void *initdata, void **d
CleanupPcapFileThreadVars(ptv); CleanupPcapFileThreadVars(ptv);
SCReturnInt(TM_ECODE_OK); SCReturnInt(TM_ECODE_OK);
} }
pv->cur_dir_depth = 0;
int should_recurse; int should_recurse;
pv->should_recurse = false; pv->should_recurse = false;

@ -108,7 +108,6 @@ int32_t MpmFactoryRegisterMpmCtxProfile(
else else
pitem->next = nitem; pitem->next = nitem;
de_ctx->mpm_ctx_factory_container->no_of_items++;
return nitem->id; return nitem->id;
} }

@ -124,7 +124,6 @@ typedef struct MpmCtxFactoryItem {
typedef struct MpmCtxFactoryContainer_ { typedef struct MpmCtxFactoryContainer_ {
MpmCtxFactoryItem *items; MpmCtxFactoryItem *items;
int32_t no_of_items;
int32_t max_id; int32_t max_id;
} MpmCtxFactoryContainer; } MpmCtxFactoryContainer;

Loading…
Cancel
Save