]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4999: extractor: fix cppcheck errors
authorRon Dempster (rdempste) <rdempste@cisco.com>
Wed, 19 Nov 2025 16:43:03 +0000 (16:43 +0000)
committerRon Dempster (rdempste) <rdempste@cisco.com>
Wed, 19 Nov 2025 16:43:03 +0000 (16:43 +0000)
Merge in SNORT/snort3 from ~RDEMPSTE/snort3:cppcheck to master

Squashed commit of the following:

commit fbce54b7c5dc6493b8d97742fa7658e39549a0b8
Author: Ron Dempster (rdempste) <rdempste@cisco.com>
Date:   Tue Nov 18 16:57:33 2025 -0500

    extractor: fix cppcheck errors

src/network_inspectors/extractor/extractors.h

index 1e14c4c6d232af873539fc01691f4dff272f6b65..5ec8e4d6f116836d57ebd31911fb32c56e34d69c 100644 (file)
@@ -38,7 +38,8 @@
 template <typename Ret, class... Context>
 struct DataField
 {
-    DataField(const char* name, Ret (*get)(Context...)) : name(name), get(get) { }
+    DataField(const char* name_in, Ret (*get_in)(Context...)) : name(name_in), get(get_in)
+    { }
 
     const char* name;
     Ret (*get)(Context...);