Module Name: othersrc
Committed By: riz
Date: Mon Aug 8 16:23:43 UTC 2011
Modified Files:
othersrc/external/bsd/iscsi/sbin/iscsictl: iscsic_globals.h
Log Message:
Fix bigendian build of iscsictl.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
othersrc/external/bsd/iscsi/sbin/iscsictl/iscsic_globals.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/external/bsd/iscsi/sbin/iscsictl/iscsic_globals.h
diff -u othersrc/external/bsd/iscsi/sbin/iscsictl/iscsic_globals.h:1.2 othersrc/external/bsd/iscsi/sbin/iscsictl/iscsic_globals.h:1.3
--- othersrc/external/bsd/iscsi/sbin/iscsictl/iscsic_globals.h:1.2 Mon Aug 8 02:24:33 2011
+++ othersrc/external/bsd/iscsi/sbin/iscsictl/iscsic_globals.h Mon Aug 8 16:23:43 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsic_globals.h,v 1.2 2011/08/08 02:24:33 agc Exp $ */
+/* $NetBSD: iscsic_globals.h,v 1.3 2011/08/08 16:23:43 riz Exp $ */
/*-
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -114,7 +114,7 @@
*d++ = *s--;
*d = *s;
#else
- memcpy(d, &x[2], 6);
+ memcpy(d, &((uint8_t *)&x)[2], 6);
#endif
}