This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 339e9e52a7 Fixes broken matchers after PascalCase (#11500)
339e9e52a7 is described below

commit 339e9e52a7921a569bdec436b480d533c30fa427
Author: Leif Hedstrom <[email protected]>
AuthorDate: Mon Jul 1 19:42:35 2024 -0600

    Fixes broken matchers after PascalCase (#11500)
---
 include/cripts/Matcher.hpp | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/include/cripts/Matcher.hpp b/include/cripts/Matcher.hpp
index bb0bb98519..aa09ef8d50 100644
--- a/include/cripts/Matcher.hpp
+++ b/include/cripts/Matcher.hpp
@@ -68,25 +68,37 @@ namespace Range
     }
 
     bool
-    Match(sockaddr const *target, void ** /* ptr ATS_UNUSED */) const
+    Match(sockaddr const *target) const
     {
       return contains(swoc::IPAddr(target));
     }
 
     bool
-    Match(in_addr_t target, void ** /* ptr ATS_UNUSED */) const
+    Match(in_addr_t target) const
     {
       return contains(swoc::IPAddr(target));
     }
 
     bool
-    Contains(sockaddr const *target, void ** /* ptr ATS_UNUSED */) const
+    Match(swoc::IPAddr const &target) const
+    {
+      return contains(target);
+    }
+
+    bool
+    Contains(swoc::IPAddr const &target) const
+    {
+      return contains(target);
+    }
+
+    bool
+    Contains(sockaddr const *target) const
     {
       return contains(swoc::IPAddr(target));
     }
 
     bool
-    Contains(in_addr_t target, void ** /* ptr ATS_UNUSED */) const
+    Contains(in_addr_t target) const
     {
       return contains(swoc::IPAddr(target));
     }

Reply via email to