Source-Changes-HG archive

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

[src/trunk]: src/sbin/iscsictl it's really 32bit



details:   https://anonhg.NetBSD.org/src/rev/4f79a47aa98d
branches:  trunk
changeset: 779896:4f79a47aa98d
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Mon Jun 25 20:39:54 2012 +0000

description:
it's really 32bit

diffstat:

 sbin/iscsictl/iscsic_driverif.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f5ce5c14aa8a -r 4f79a47aa98d sbin/iscsictl/iscsic_driverif.c
--- a/sbin/iscsictl/iscsic_driverif.c   Mon Jun 25 20:34:26 2012 +0000
+++ b/sbin/iscsictl/iscsic_driverif.c   Mon Jun 25 20:39:54 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iscsic_driverif.c,v 1.5 2012/06/25 20:33:56 mlelstv Exp $      */
+/*     $NetBSD: iscsic_driverif.c,v 1.6 2012/06/25 20:39:54 mlelstv Exp $      */
 
 /*-
  * Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -609,7 +609,7 @@
                return rc;
        }
        (void) memcpy(&n, buf, sizeof(n));
-       llen = ntohs(n);
+       llen = ntohl(n);
        if (!llen) {
                printf("No LUNs!\n");
                return 1;



Home | Main Index | Thread Index | Old Index