From: Victor Julien Date: Wed, 4 Jun 2025 08:50:39 +0000 (+0200) Subject: detect/absent: constify signature pointer in callback X-Git-Tag: suricata-8.0.0-rc1~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=325f0cc02aab797d902cba6020653f7f6fb1fff2;p=thirdparty%2Fsuricata.git detect/absent: constify signature pointer in callback --- diff --git a/src/detect-isdataat.c b/src/detect-isdataat.c index a958a829e8..7709568159 100644 --- a/src/detect-isdataat.c +++ b/src/detect-isdataat.c @@ -115,7 +115,7 @@ static int DetectAbsentSetup(DetectEngineCtx *de_ctx, Signature *s, const char * return 0; } -bool DetectAbsentValidateContentCallback(Signature *s, const SignatureInitDataBuffer *b) +bool DetectAbsentValidateContentCallback(const Signature *s, const SignatureInitDataBuffer *b) { bool has_other = false; bool only_absent = false; diff --git a/src/detect-isdataat.h b/src/detect-isdataat.h index c0cff88483..f1932ff56c 100644 --- a/src/detect-isdataat.h +++ b/src/detect-isdataat.h @@ -42,6 +42,6 @@ typedef struct DetectAbsentData_ { /* prototypes */ void DetectIsdataatRegister (void); -bool DetectAbsentValidateContentCallback(Signature *s, const SignatureInitDataBuffer *); +bool DetectAbsentValidateContentCallback(const Signature *s, const SignatureInitDataBuffer *); #endif /* SURICATA_DETECT_ISDATAAT_H */