diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-05-01 06:36:15 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-05-01 06:36:15 +0000 |
commit | f9b1f6fe23396291bc504e850dfe98ea5647ed9e (patch) | |
tree | 61fa1e8aec25e84d33b17899b7949f012dd2ff88 /pjsip/src/test-pjsip | |
parent | 9bfdd11aac28c934ce580880837cce948d9be10a (diff) |
Fixed build error on Linux
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1236 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/test-pjsip')
-rw-r--r-- | pjsip/src/test-pjsip/msg_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pjsip/src/test-pjsip/msg_test.c b/pjsip/src/test-pjsip/msg_test.c index 04c2993c..7bdc49dc 100644 --- a/pjsip/src/test-pjsip/msg_test.c +++ b/pjsip/src/test-pjsip/msg_test.c @@ -970,7 +970,7 @@ static int hdr_test_accept0(pjsip_hdr *h) return 0; } -/* "application/*, text/plain\r\n" */ +/* "application/ *, text/plain\r\n" */ static int hdr_test_accept1(pjsip_hdr *h) { pjsip_accept_hdr *hdr = (pjsip_accept_hdr*)h; @@ -990,7 +990,7 @@ static int hdr_test_accept1(pjsip_hdr *h) return 0; } -/* "application/*;p1=v1, text/plain\r\n" */ +/* "application/ *;p1=v1, text/plain\r\n" */ static int hdr_test_accept2(pjsip_hdr *h) { pjsip_accept_hdr *hdr = (pjsip_accept_hdr*)h; @@ -1116,9 +1116,9 @@ static int test_simple_addr_spec(pjsip_uri *uri) #define ADDR_SPEC SIMPLE_ADDR_SPEC ";"PARAM_CHAR"="PARAM_CHAR ";p1=\";\"" #define NAME_ADDR "<" ADDR_SPEC ">" */ -static int nameaddr_test(pjsip_uri *uri) +static int nameaddr_test(void *uri) { - pjsip_sip_uri *sip_uri = (pjsip_sip_uri *)pjsip_uri_get_uri(uri); + pjsip_sip_uri *sip_uri=(pjsip_sip_uri *)pjsip_uri_get_uri((pjsip_uri*)uri); pjsip_param *param; int rc; @@ -1355,7 +1355,7 @@ static int hdr_test_record_route(pjsip_hdr *h) if (h->type != PJSIP_H_RECORD_ROUTE) return -2210; - rc = nameaddr_test((pjsip_uri*)&hdr->name_addr); + rc = nameaddr_test(&hdr->name_addr); if (rc != 0) return rc; @@ -1470,7 +1470,7 @@ static int hdr_test(void) return -502; } -#if 0 +#if 1 /* Parse with hshortname, if present */ if (test->hshort_name) { hname = pj_str(test->hshort_name); |