You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2014/09/16 07:06:15 UTC

git commit: Use IN6ADDR_LOOPBACK_INIT instead of in6addr_loopback

Repository: trafficserver
Updated Branches:
  refs/heads/master 5867449af -> 13bd7bc96


Use IN6ADDR_LOOPBACK_INIT instead of in6addr_loopback

IN6ADDR_LOOPBACK_INIT is a bit more portable, and using an inline
constant seems nicer that copying an external symbol.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/13bd7bc9
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/13bd7bc9
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/13bd7bc9

Branch: refs/heads/master
Commit: 13bd7bc96f7e44a5a4d87689f42743b0efd41764
Parents: 5867449
Author: James Peach <jp...@apache.org>
Authored: Mon Sep 15 22:05:04 2014 -0700
Committer: James Peach <jp...@apache.org>
Committed: Mon Sep 15 22:06:02 2014 -0700

----------------------------------------------------------------------
 lib/ts/ink_inet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/13bd7bc9/lib/ts/ink_inet.h
----------------------------------------------------------------------
diff --git a/lib/ts/ink_inet.h b/lib/ts/ink_inet.h
index 30ebc8f..90bfc2f 100644
--- a/lib/ts/ink_inet.h
+++ b/lib/ts/ink_inet.h
@@ -1302,7 +1302,7 @@ IpEndpoint::setToLoopback(int family) {
     sin.sin_len = sizeof(sockaddr_in);
 #endif
   } else if (AF_INET6 == family) {
-    sin6.sin6_addr = in6addr_loopback;
+    sin6.sin6_addr = IN6ADDR_LOOPBACK_INIT;
 #if HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN
     sin6.sin6_len = sizeof(sockaddr_in6);
 #endif