From: G.E Date: Mon, 29 Apr 2024 10:38:35 +0000 (+0300) Subject: fixed const adjustments. X-Git-Tag: vectorscan/5.4.12^2~59^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F258%2Fhead;p=thirdparty%2Fvectorscan.git fixed const adjustments. --- diff --git a/src/rose/rose_build_matchers.h b/src/rose/rose_build_matchers.h index ef8999ed..37a96c7a 100644 --- a/src/rose/rose_build_matchers.h +++ b/src/rose/rose_build_matchers.h @@ -101,7 +101,7 @@ struct LitProto { }; bytecode_ptr -buildHWLMMatcher(const RoseBuildImpl &build, LitProto *proto); +buildHWLMMatcher(const RoseBuildImpl &build, const LitProto *proto); std::unique_ptr buildFloatingMatcherProto(const RoseBuildImpl &build, diff --git a/unit/hyperscan/test_util.cpp b/unit/hyperscan/test_util.cpp index c7a26acd..10d23962 100644 --- a/unit/hyperscan/test_util.cpp +++ b/unit/hyperscan/test_util.cpp @@ -92,7 +92,7 @@ hs_database_t *buildDB(const pattern &expr, unsigned int mode) { hs_database_t *buildDB(const char *expression, unsigned int flags, unsigned int id, unsigned int mode, - hs_platform_info_t *plat) { + const hs_platform_info_t *plat) { return buildDB({pattern(expression, flags, id)}, mode, plat); } diff --git a/unit/hyperscan/test_util.h b/unit/hyperscan/test_util.h index 21862b6b..01fdca0b 100644 --- a/unit/hyperscan/test_util.h +++ b/unit/hyperscan/test_util.h @@ -99,11 +99,11 @@ struct pattern { std::ostream &operator<<(std::ostream &o, const pattern &p); hs_database_t *buildDB(const std::vector &patterns, unsigned int mode, - hs_platform_info *plat = nullptr); + const hs_platform_info *plat = nullptr); hs_database_t *buildDB(const pattern &pat, unsigned int mode); hs_database_t *buildDB(const char *expression, unsigned int flags, unsigned int id, unsigned int mode, - hs_platform_info *plat = nullptr); + const hs_platform_info *plat = nullptr); hs_database_t *buildDB(const char *filename, unsigned int mode, unsigned int extra_flags = 0); hs_database_t *buildDB(const char *filename, unsigned int mode,