projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix inet return value in the close() fct
[lttng-tools.git]
/
src
/
common
/
sessiond-comm
/
inet6.c
diff --git
a/src/common/sessiond-comm/inet6.c
b/src/common/sessiond-comm/inet6.c
index 38822ca632fa1f10f356071e319c7000e559adc4..ac6d0988afb85cce87f8f31e02d0fced5a4f68e3 100644
(file)
--- a/
src/common/sessiond-comm/inet6.c
+++ b/
src/common/sessiond-comm/inet6.c
@@
-272,15
+272,15
@@
ssize_t lttcomm_sendmsg_inet6_sock(struct lttcomm_sock *sock, void *buf,
*/
int lttcomm_close_inet6_sock(struct lttcomm_sock *sock)
{
*/
int lttcomm_close_inet6_sock(struct lttcomm_sock *sock)
{
- int ret
, closeret
;
+ int ret;
/* Don't try to close an invalid mark socket */
if (sock->fd == -1) {
return 0;
}
/* Don't try to close an invalid mark socket */
if (sock->fd == -1) {
return 0;
}
-
close
ret = close(sock->fd);
- if (
close
ret) {
+ ret = close(sock->fd);
+ if (ret) {
PERROR("close inet6");
}
PERROR("close inet6");
}
This page took
0.034175 seconds
and
4
git commands to generate.