[sr-dev] git:master: core: fix bogus gcc-4.4 warning

Andrei Pelinescu-Onciul andrei at iptel.org
Tue Feb 2 17:38:29 CET 2010


Module: sip-router
Branch: master
Commit: 3a99415a7df46e2fd63698ee407c5075aac01846
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3a99415a7df46e2fd63698ee407c5075aac01846

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Tue Feb  2 17:40:22 2010 +0100

core: fix bogus gcc-4.4 warning

---

 ip_addr.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ip_addr.h b/ip_addr.h
index 2983e46..4f027ec 100644
--- a/ip_addr.h
+++ b/ip_addr.h
@@ -696,7 +696,7 @@ static inline char* su2a(union sockaddr_union* su, int su_len)
 		if (unlikely(su_len<sizeof(su->sin6)))
 			return "<addr. error>";
 		buf[0]='[';
-		offs=1+ip6tosbuf((unsigned char*)&su->sin6.sin6_addr, &buf[1],
+		offs=1+ip6tosbuf((unsigned char*)su->sin6.sin6_addr.s6_addr, &buf[1],
 							sizeof(buf)-4);
 		buf[offs]=']';
 		offs++;




More information about the sr-dev mailing list