trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1144371 - /trafficserver/traffic/trunk/lib/ts/ink_inet.h
Date Fri, 08 Jul 2011 16:04:07 GMT
Author: amc
Date: Fri Jul  8 16:04:07 2011
New Revision: 1144371

URL: http://svn.apache.org/viewvc?rev=1144371&view=rev
Log:
Another compiler fix.

Modified:
    trafficserver/traffic/trunk/lib/ts/ink_inet.h

Modified: trafficserver/traffic/trunk/lib/ts/ink_inet.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/lib/ts/ink_inet.h?rev=1144371&r1=1144370&r2=1144371&view=diff
==============================================================================
--- trafficserver/traffic/trunk/lib/ts/ink_inet.h (original)
+++ trafficserver/traffic/trunk/lib/ts/ink_inet.h Fri Jul  8 16:04:07 2011
@@ -364,10 +364,11 @@ inline int ink_inet_cmp(
     }
   } else if (AF_INET6 == ltype) {
     if (AF_INET6 == rtype) {
+      sockaddr_in6 const* lhs_in6 = ink_inet_ip6_cast(lhs);
       zret = memcmp(
-        &ink_inet_ip6_cast(lhs)->sin6_addr,
+        &lhs_in6->sin6_addr,
         &ink_inet_ip6_cast(rhs)->sin6_addr,
-        sizeof(sockaddr_in6::sin6_addr)
+        sizeof(lhs_in6->sin6_addr)
       );
     } else {
       ink_assert(AF_INET == rtype);



Mime
View raw message