Module: sip-router
Branch: andrei/pointer_alias_warnings
Commit: 34dc702f619b9c647640811275d7087ffade8e93
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=34dc702…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Oct 12 18:52:33 2009 +0200
rr: pointer aliasing warning fixes
- use the avp data union
---
modules_s/rr/avp_cookie.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_s/rr/avp_cookie.c b/modules_s/rr/avp_cookie.c
index d5a0b50..1e9d027 100644
--- a/modules_s/rr/avp_cookie.c
+++ b/modules_s/rr/avp_cookie.c
@@ -66,11 +66,11 @@ str *rr_get_avp_cookies(void) {
if ((avp->flags&(AVP_NAME_STR|AVP_VAL_STR)) == AVP_NAME_STR) {
/* avp type str, int value */
- avp_name = & ((struct str_int_data*)&avp->d.data[0])->name;
+ avp_name = & ((struct str_int_data*)avp->d.p)->name;
}
else if ((avp->flags&(AVP_NAME_STR|AVP_VAL_STR)) == (AVP_NAME_STR|AVP_VAL_STR))
{
/* avp type str, str value */
- avp_name = & ((struct str_str_data*)&avp->d.data[0])->name;
+ avp_name = & ((struct str_str_data*)avp->d.p)->name;
}
else
avp_name = 0; /* dummy */