[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-devel
Subject:    [sr-dev] git:kamailio_3.0: core: fix bogus gcc-4.4 warning
From:       Andrei Pelinescu-Onciul <andrei () iptel ! org>
Date:       2010-05-28 19:29:37
Message-ID: 20100528192937.CFE89EF8076 () rimmer
[Download RAW message or body]

Module: sip-router
Branch: kamailio_3.0
Commit: d1c24f0fac36438961ce91c5e3c1a4d6a9677504
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d1c24f0fac36438961ce91c5e3c1a4d6a9677504


Author: Andrei Pelinescu-Onciul <andrei@iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei@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++;


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic