Commit 47a5245e authored by Pekka Pessi's avatar Pekka Pessi

Using su_home_new(size) instead of su_home_clone(NULL, size).

darcs-hash:20051223130728-65a35-92fcc79cb494c47730641624356990d4b9b3d62a.gz
parent a18c1ae0
......@@ -1196,7 +1196,7 @@ static int test_http_encoding(void)
BEGIN();
TEST_1(home = su_home_clone(NULL, sizeof *home));
TEST_1(home = su_home_new(sizeof *home));
msg = read_message(
"GET http://bar.com/foo/ HTTP/1.1\r\n"
......
......@@ -90,7 +90,7 @@ auth_mod_t *auth_mod_alloc(auth_scheme_t *scheme,
{
auth_mod_t *am = NULL;
if ((am = su_home_clone(NULL, scheme->asch_size))) {
if ((am = su_home_new(scheme->asch_size))) {
am->am_scheme = scheme;
am->am_refcount = 1;
}
......
......@@ -524,7 +524,7 @@ int test_digest_client()
sip_authentication_info_class
}};
TEST_1(home = su_home_clone(NULL, sizeof(*home)));
TEST_1(home = su_home_new(sizeof(*home)));
TEST_1(m1 = read_message(MSG_DO_EXTRACT_COPY, challenge));
TEST_1(sip = sip_object(m1));
......@@ -917,7 +917,7 @@ int test_digest_client()
su_root_destroy(root);
su_home_zap(home);
su_home_unref(home);
}
END();
......
......@@ -136,7 +136,7 @@ nea_t *nea_create(nta_agent_t *agent,
tl_find(ta_args(ta), siptag_contact) ||
tl_find(ta_args(ta), siptag_contact_str);
if (have_to && (nea = su_home_clone(NULL, sizeof(nea_t)))) {
if (have_to && (nea = su_home_new(sizeof(nea_t)))) {
su_home_t *home = nea->nea_home;
sip_contact_t *m = nta_agent_contact(agent);
sip_from_t *from;
......
......@@ -430,7 +430,7 @@ nea_server_t *nea_server_create(nta_agent_t *agent,
return NULL;
}
nes = su_home_clone(NULL, sizeof(nea_server_t));
nes = su_home_new(sizeof(nea_server_t));
if (nes) {
su_home_t *home = nes->nes_home;
......
......@@ -193,7 +193,7 @@ int test_methods(void)
/* Test <sip_basic.c> functions. */
int test_basic(void)
{
su_home_t *home = su_home_clone(NULL, sizeof *home);
su_home_t *home = su_home_new(sizeof *home);
BEGIN();
......@@ -692,7 +692,7 @@ static int test_encoding(void)
BEGIN();
TEST_1(home = su_home_clone(NULL, sizeof *home));
TEST_1(home = su_home_new(sizeof *home));
msg = read_message(MSG_DO_EXTRACT_COPY,
"SUBSCRIBE sip:foo@bar SIP/2.0\r\n"
......@@ -834,7 +834,7 @@ static int test_encoding(void)
su_home_check(home);
su_home_zap(home);
home = su_home_clone(NULL, sizeof *home); TEST_1(home);
home = su_home_new(sizeof *home); TEST_1(home);
msg = read_message(0,
"SIP/2.0 200 Ok\r\n"
......@@ -895,7 +895,7 @@ static int test_encoding(void)
/** Test header filtering and duplicating */
int tag_test(void)
{
su_home_t *home = su_home_clone(NULL, sizeof(*home));
su_home_t *home = su_home_new(sizeof(*home));
sip_request_t *request =
sip_request_make(home, "INVITE sip:joe@example.com SIP/2.0");
sip_to_t *to = sip_to_make(home,
......@@ -2326,7 +2326,7 @@ int test_caller_prefs(void)
BEGIN();
TEST_1(home = su_home_clone(NULL, sizeof *home));
TEST_1(home = su_home_new(sizeof *home));
TEST_1(!sip_is_callerpref("attendant"));
TEST_1(sip_is_callerpref("audio"));
......@@ -2712,7 +2712,7 @@ static int test_callerpref_scoring(void)
BEGIN();
TEST_1(home = su_home_clone(NULL, sizeof *home));
TEST_1(home = su_home_new(sizeof *home));
TEST_1(m = sip_contact_make(home, contact));
m1 = m, m2 = m->m_next, m3 = m->m_next->m_next, m4 = m->m_next->m_next->m_next,
......@@ -2926,7 +2926,7 @@ static int test_utils(void)
BEGIN();
TEST_1(home = su_home_clone(NULL, sizeof *home));
TEST_1(home = su_home_new(sizeof *home));
TEST_1(f = sip_from_make(home, "<sip:u:p@h.com:5555"
";ttl=1;user=IP;maddr=::1;lr=TRUE;transport=TCP"
";test=1?accept-contact=*;audio;video;explicit>"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment