Fix inet return value in the close() fct
authorDavid Goulet <dgoulet@efficios.com>
Tue, 3 Jul 2012 20:28:05 +0000 (16:28 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 3 Jul 2012 20:28:05 +0000 (16:28 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/sessiond-comm/inet.c
src/common/sessiond-comm/inet6.c

index 51ac670f27256a1e7390661900aaf668543d3220..3cf8f5d3f5b4f89be36307929dee051590dafb98 100644 (file)
@@ -272,15 +272,15 @@ ssize_t lttcomm_sendmsg_inet_sock(struct lttcomm_sock *sock, void *buf,
  */
 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");
        }
 
index 38822ca632fa1f10f356071e319c7000e559adc4..ac6d0988afb85cce87f8f31e02d0fced5a4f68e3 100644 (file)
@@ -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");
        }
 
This page took 0.031648 seconds and 4 git commands to generate.