Module: sip-router
Branch: sr_3.0
Commit: 720e50dea0528e55501fe41661941e4b40c903f9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=720e50d…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Feb 2 17:40:22 2010 +0100
core: fix bogus gcc-4.4 warning
(cherry picked from commit 3a99415a7df46e2fd63698ee407c5075aac01846)
---
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++;