X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Finet6.c;h=ac6d0988afb85cce87f8f31e02d0fced5a4f68e3;hp=38822ca632fa1f10f356071e319c7000e559adc4;hb=6e7423591c5edde632d79ff52ba449d99da8eb14;hpb=0840ee7f8b89be840b3f44a4df35a75826839e74 diff --git a/src/common/sessiond-comm/inet6.c b/src/common/sessiond-comm/inet6.c index 38822ca63..ac6d0988a 100644 --- 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 ret, closeret; + int ret; /* Don't try to close an invalid mark socket */ if (sock->fd == -1) { return 0; } - closeret = close(sock->fd); - if (closeret) { + ret = close(sock->fd); + if (ret) { PERROR("close inet6"); }