Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/iscsi fix amd64/conf/ALL build failure



details:   https://anonhg.NetBSD.org/src/rev/68670e0d89bc
branches:  trunk
changeset: 812625:68670e0d89bc
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Thu Dec 24 03:41:03 2015 +0000

description:
fix amd64/conf/ALL build failure

diffstat:

 sys/dev/iscsi/iscsi_send.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 8613ca953aa9 -r 68670e0d89bc sys/dev/iscsi/iscsi_send.c
--- a/sys/dev/iscsi/iscsi_send.c        Thu Dec 24 02:27:14 2015 +0000
+++ b/sys/dev/iscsi/iscsi_send.c        Thu Dec 24 03:41:03 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iscsi_send.c,v 1.14 2015/05/30 18:09:31 joerg Exp $    */
+/*     $NetBSD: iscsi_send.c,v 1.15 2015/12/24 03:41:03 knakahara Exp $        */
 
 /*-
  * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -54,10 +54,12 @@
 my_soo_write(connection_t *conn, struct uio *u)
 {
        struct socket *so = conn->sock->f_socket;
+       int ret;
+#ifdef ISCSI_DEBUG
        size_t resid = u->uio_resid;
-       int ret;
 
        assert(resid != 0);
+#endif
 
        ret = sosend(so, NULL, u, NULL, NULL, 0, conn->threadobj);
 



Home | Main Index | Thread Index | Old Index