[Pkg-iscsi-maintainers] [SCM] Debian Open-iSCSI Packaging branch, upstream-mnc, updated. 2.0-872-101-g2616afb

Mike Christie michaelc at cs.wisc.edu
Mon May 2 18:56:44 UTC 2011


The following commit has been merged in the upstream-mnc branch:
commit 160dc094f1c4d8cccdc8717795cc0903c98741e4
Author: Mark Rustad <mark.d.rustad at intel.com>
Date:   Thu Apr 7 09:35:37 2011 -0700

    Remove redundant initialization
    
    The variable len in iscsi_io_tcp_poll is initialized in its declaration, but
    also initialized before use. Remove the initialization in the declaration.
    
    Signed-off-by: Mark Rustad <mark.d.rustad at intel.com>
    Tested-by: Ross Brattain <ross.b.brattain at intel.com>

diff --git a/usr/io.c b/usr/io.c
index 0c52a39..aa81941 100644
--- a/usr/io.c
+++ b/usr/io.c
@@ -436,7 +436,7 @@ iscsi_io_tcp_poll(iscsi_conn_t *conn, int timeout_ms)
 	struct pollfd pdesc;
 	char serv[NI_MAXSERV], lserv[NI_MAXSERV];
 	struct sockaddr_storage ss;
-	socklen_t len = sizeof(ss);
+	socklen_t len;
 
 	pdesc.fd = conn->socket_fd;
 	pdesc.events = POLLOUT;

-- 
Debian Open-iSCSI Packaging



More information about the Pkg-iscsi-maintainers mailing list