From: Victor Julien Date: Wed, 27 Apr 2022 19:28:25 +0000 (+0200) Subject: threshold: constify detect engine arg X-Git-Tag: suricata-7.0.0-beta1~600 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80124152c6bbbbdf7862b5ec528a9afa8f40b959;p=thirdparty%2Fsuricata.git threshold: constify detect engine arg --- diff --git a/src/util-threshold-config.c b/src/util-threshold-config.c index 5eedd864d7..97c7507624 100644 --- a/src/util-threshold-config.c +++ b/src/util-threshold-config.c @@ -625,12 +625,10 @@ error: return -1; } -static int ParseThresholdRule(DetectEngineCtx *de_ctx, char *rawstr, - uint32_t *ret_id, uint32_t *ret_gid, - uint8_t *ret_parsed_type, uint8_t *ret_parsed_track, - uint32_t *ret_parsed_count, uint32_t *ret_parsed_seconds, uint32_t *ret_parsed_timeout, - uint8_t *ret_parsed_new_action, - char **ret_th_ip) +static int ParseThresholdRule(const DetectEngineCtx *de_ctx, char *rawstr, uint32_t *ret_id, + uint32_t *ret_gid, uint8_t *ret_parsed_type, uint8_t *ret_parsed_track, + uint32_t *ret_parsed_count, uint32_t *ret_parsed_seconds, uint32_t *ret_parsed_timeout, + uint8_t *ret_parsed_new_action, char **ret_th_ip) { char th_rule_type[32]; char th_gid[16];