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

bneradt pushed a commit to branch ipsrv
in repository https://gitbox.apache.org/repos/asf/trafficserver-libswoc.git

commit a0676f2701e8b0e27eec37794c88c422658e18c1
Author: Alan M. Carroll <[email protected]>
AuthorDate: Thu Oct 27 16:19:27 2022 -0500

    Fix typos.
---
 code/src/bw_ip_format.cc | 4 ++--
 code/src/swoc_ip.cc      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/code/src/bw_ip_format.cc b/code/src/bw_ip_format.cc
index 5bd86d8..1c96b53 100644
--- a/code/src/bw_ip_format.cc
+++ b/code/src/bw_ip_format.cc
@@ -82,7 +82,7 @@ bwformat(BufferWriter &w, Spec const &spec, in6_addr const 
&addr) {
 
 BufferWriter &
 bwformat(BufferWriter &w, Spec const &spec, sockaddr const *addr) {
-  Spec local_spec{spec}; // Format for address elements and host_order_port.
+  Spec local_spec{spec}; // Format for address elements and port.
   bool port_p{true};
   bool addr_p{true};
   bool family_p{false};
@@ -209,7 +209,7 @@ bwformat(BufferWriter &w, Spec const &spec, IP6Addr const 
&addr) {
 
 BufferWriter &
 bwformat(BufferWriter &w, Spec const &spec, IPAddr const &addr) {
-  Spec local_spec{spec}; // Format for address elements and host_order_port.
+  Spec local_spec{spec}; // Format for address elements and port.
   bool addr_p{true};
   bool family_p{false};
 
diff --git a/code/src/swoc_ip.cc b/code/src/swoc_ip.cc
index 9dd7db6..bb4c394 100644
--- a/code/src/swoc_ip.cc
+++ b/code/src/swoc_ip.cc
@@ -124,7 +124,7 @@ IPEndpoint::tokenize(std::string_view str, std::string_view 
*addr, std::string_v
         // Exactly one colon - leave post colon stuff in @a src.
         *addr   = src.take_prefix(last);
         colon_p = true;
-      } else { // presume no host_order_port, use everything.
+      } else { // presume no port, use everything.
         *addr = src;
         src.clear();
       }

Reply via email to