Browse code

core: fix bogus gcc-4.4 warning

Andrei Pelinescu-Onciul authored on 02/02/2010 16:40:22
Showing 1 changed files
... ...
@@ -696,7 +696,7 @@ static inline char* su2a(union sockaddr_union* su, int su_len)
696 696
 		if (unlikely(su_len<sizeof(su->sin6)))
697 697
 			return "<addr. error>";
698 698
 		buf[0]='[';
699
-		offs=1+ip6tosbuf((unsigned char*)&su->sin6.sin6_addr, &buf[1],
699
+		offs=1+ip6tosbuf((unsigned char*)su->sin6.sin6_addr.s6_addr, &buf[1],
700 700
 							sizeof(buf)-4);
701 701
 		buf[offs]=']';
702 702
 		offs++;