Signed-off-by: David Goulet <dgoulet@efficios.com>
*/
int lttcomm_close_inet_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 inet");
}
*/
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");
}