Commit f58f7b34 authored by Pekka Pessi's avatar Pekka Pessi

tport.c, test_tport.c: use su_socket().

darcs-hash:20060825080153-65a35-7169606d9d859a9ec840b27ed85bd4edfde37047.gz
parent 53dd507a
......@@ -561,7 +561,7 @@ static int init_test(tp_test_t *tt)
*rname = *myname;
memset(su, 0, sulen = sizeof(su->su_sin));
s = socket(su->su_family = AF_INET, SOCK_STREAM, 0); TEST_1(s != -1);
s = su_socket(su->su_family = AF_INET, SOCK_STREAM, 0); TEST_1(s != -1);
TEST_1(bind(s, &su->su_sa, sulen) != -1);
TEST_1(listen(s, 5) != -1);
TEST_1(getsockname(s, &su->su_sa, &sulen) != -1);
......
......@@ -1560,8 +1560,8 @@ int bind6only_check(tport_master_t *mr)
if (mr->mr_boundserver)
return 0;
s4 = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
s6 = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP);
s4 = su_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
s6 = su_socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP);
memset(su, 0, sizeof *su);
su->su_len = sulen = (sizeof su->su_sin6);
......
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