Commit 53dd507a authored by Pekka Pessi's avatar Pekka Pessi
Browse files

su_root_test.c: use su_socket().

darcs-hash:20060823142651-65a35-e32dd2424a1ba52a883fd0bb6cba14cbdd213a21.gz
parent 213ecf73
......@@ -101,7 +101,7 @@ int init_test(root_test_t *rt)
test_ep_t *ep = rt->rt_ep[i];
ep->i = i;
ep->addrlen = su_sockaddr_size(su);
TEST_1((ep->s = socket(su->su_family, SOCK_DGRAM, 0)) != -1);
TEST_1((ep->s = su_socket(su->su_family, SOCK_DGRAM, 0)) != -1);
TEST_1(bind(ep->s, &su->su_sa, ep->addrlen) != -1);
TEST_1(su_wait_create(ep->wait, ep->s, SU_WAIT_IN|SU_WAIT_ERR) != -1);
TEST_1(getsockname(ep->s, &ep->addr->su_sa, &ep->addrlen) != -1);
......@@ -197,7 +197,7 @@ static int register_test(root_test_t *rt)
BEGIN();
TEST_1((s = socket(rt->rt_family, SOCK_DGRAM, 0)) != -1);
TEST_1((s = su_socket(rt->rt_family, SOCK_DGRAM, 0)) != -1);
for (i = 0; i < 5; i++) {
rt->rt_ep[i]->registered =
......
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