summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-06-04 14:44:29 +0000
committerBenny Prijono <bennylp@teluu.com>2008-06-04 14:44:29 +0000
commit27220811ac7255bd957c179c9f1042443e786578 (patch)
tree329d9ac1a8cc55b7cda4705741ffe02f8f7f3b39 /pjsip
parentbb129dd2a23d1f9ba956a60f9aaafc76629aab77 (diff)
Fixed gcc warnings about type pruned pointers
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1981 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/src/pjsip-ua/sip_reg.c2
-rw-r--r--pjsip/src/test-pjsip/regc_test.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/pjsip/src/pjsip-ua/sip_reg.c b/pjsip/src/pjsip-ua/sip_reg.c
index d6f85720..ed15dfbe 100644
--- a/pjsip/src/pjsip-ua/sip_reg.c
+++ b/pjsip/src/pjsip-ua/sip_reg.c
@@ -568,7 +568,7 @@ PJ_DEF(pj_status_t) pjsip_regc_unregister(pjsip_regc *regc,
/* Add Contact headers. */
hdr = (pjsip_hdr*)regc->contact_hdr_list.next;
- while (hdr != (pjsip_hdr*)&regc->contact_hdr_list) {
+ while ((void*)hdr != (void*)&regc->contact_hdr_list) {
pjsip_msg_add_hdr(msg, (pjsip_hdr*)
pjsip_hdr_shallow_clone(tdata->pool, hdr));
hdr = hdr->next;
diff --git a/pjsip/src/test-pjsip/regc_test.c b/pjsip/src/test-pjsip/regc_test.c
index a9629739..95cc5f95 100644
--- a/pjsip/src/test-pjsip/regc_test.c
+++ b/pjsip/src/test-pjsip/regc_test.c
@@ -580,7 +580,7 @@ static int update_test(const pj_str_t *registrar_uri)
ret = -630;
goto on_return;
}
- if (h1->next == (pjsip_contact_hdr*)&tdata->msg->hdr)
+ if ((void*)h1->next == (void*)&tdata->msg->hdr)
h2 = NULL;
else
h2 = (pjsip_contact_hdr*)
@@ -590,7 +590,7 @@ static int update_test(const pj_str_t *registrar_uri)
goto on_return;
}
/* must not have other Contact header */
- if (h2->next != (pjsip_contact_hdr*)&tdata->msg->hdr &&
+ if ((void*)h2->next != (void*)&tdata->msg->hdr &&
pjsip_msg_find_hdr(tdata->msg, PJSIP_H_CONTACT, h2->next) != NULL)
{
ret = -645;
@@ -660,7 +660,7 @@ static int update_test(const pj_str_t *registrar_uri)
ret = -730;
goto on_return;
}
- if (h1->next == (pjsip_contact_hdr*)&tdata->msg->hdr)
+ if ((void*)h1->next == (void*)&tdata->msg->hdr)
h2 = NULL;
else
h2 = (pjsip_contact_hdr*)
@@ -670,7 +670,7 @@ static int update_test(const pj_str_t *registrar_uri)
goto on_return;
}
/* must not have other Contact header */
- if (h2->next != (pjsip_contact_hdr*)&tdata->msg->hdr &&
+ if ((void*)h2->next != (void*)&tdata->msg->hdr &&
pjsip_msg_find_hdr(tdata->msg, PJSIP_H_CONTACT, h2->next) != NULL)
{
ret = -745;