Commit 33c2fb69 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Using su_close() instead of close().

darcs-hash:20051101135058-65a35-7c50a376d9329ded9a13fc75f0d18ac6fe734305.gz
parent 461db1cb
......@@ -201,7 +201,7 @@ int test_socket(sres_context_t *ctx)
TEST(recvfrom(s2, buf, sizeof buf, 0, sa, &alen), -1);
TEST(recvfrom(s1, buf, sizeof buf, 0, sa, &alen), 3);
close(s1), close(s2), close(s3), close(s4);
su_close(s1), su_close(s2), su_close(s3), su_close(s4);
break;
}
......@@ -1356,7 +1356,7 @@ int sink_deinit(sres_context_t *ctx)
if (ctx->sinkidx)
su_root_deregister(ctx->root, ctx->sinkidx);
ctx->sinkidx = 0;
close(ctx->sink), ctx->sink = -1;
su_close(ctx->sink), ctx->sink = -1;
END();
}
......@@ -1784,7 +1784,7 @@ int test_deinit(sres_context_t *ctx)
{
int i;
for (i = 0; i < ctx->n_sockets; i++)
close(ctx->sockets[i]);
su_close(ctx->sockets[i]);
sres_resolver_unref(ctx->resolver), ctx->resolver = 0;
free(ctx->sockets);
free(ctx->pollfds);
......
......@@ -532,7 +532,7 @@ int stun_get_sharedsecret(stun_engine_t *se)
/* closed TLS connection */
SSL_shutdown(ssl);
close(sockfd);
su_close(sockfd);
SSL_free(ssl);
SSL_CTX_free(ctx);
......
......@@ -1856,7 +1856,7 @@ int tport_bind_server(tport_master_t *mr,
bind(s4, &su4->su_sa, su4len) == 0)
mr->mr_bindv6only = 1;
close(s6), close(s4);
su_close(s6), su_close(s4);
mr->mr_boundserver = 1;
}
......
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