Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
sofia-sip
Commits
33c2fb69
Commit
33c2fb69
authored
Nov 01, 2005
by
Pekka Pessi
Browse files
Using su_close() instead of close().
darcs-hash:20051101135058-65a35-7c50a376d9329ded9a13fc75f0d18ac6fe734305.gz
parent
461db1cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
libsofia-sip-ua/sresolv/test_sresolv.c
View file @
33c2fb69
...
...
@@ -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
);
...
...
libsofia-sip-ua/stun/stun.c
View file @
33c2fb69
...
...
@@ -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
);
...
...
libsofia-sip-ua/tport/tport.c
View file @
33c2fb69
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment