Fixed gcc warnings about type pruned pointers
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1981 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip/src/test-pjsip/regc_test.c b/pjsip/src/test-pjsip/regc_test.c
index a962973..95cc5f9 100644
--- a/pjsip/src/test-pjsip/regc_test.c
+++ b/pjsip/src/test-pjsip/regc_test.c
@@ -580,7 +580,7 @@
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 @@
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 @@
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 @@
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;