summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-05-01 06:36:15 +0000
committerBenny Prijono <bennylp@teluu.com>2007-05-01 06:36:15 +0000
commitf9b1f6fe23396291bc504e850dfe98ea5647ed9e (patch)
tree61fa1e8aec25e84d33b17899b7949f012dd2ff88
parent9bfdd11aac28c934ce580880837cce948d9be10a (diff)
Fixed build error on Linux
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1236 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjlib/src/pjlib-test/ioq_perf.c2
-rw-r--r--pjsip/src/test-pjsip/msg_test.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/pjlib/src/pjlib-test/ioq_perf.c b/pjlib/src/pjlib-test/ioq_perf.c
index cb8e8270..ea47603f 100644
--- a/pjlib/src/pjlib-test/ioq_perf.c
+++ b/pjlib/src/pjlib-test/ioq_perf.c
@@ -332,7 +332,7 @@ static int perform_test(int sock_type, const char *type_name,
for (i=0; i<thread_cnt; ++i) {
struct thread_arg *arg;
- arg = (thread_arg*) pj_pool_zalloc(pool, sizeof(*arg));
+ arg = (struct thread_arg*) pj_pool_zalloc(pool, sizeof(*arg));
arg->id = i;
arg->ioqueue = ioqueue;
arg->counter = 0;
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);