Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Add a missing ')' in the call to bswap64().
details: https://anonhg.NetBSD.org/src/rev/9604741f3271
branches: trunk
changeset: 347972:9604741f3271
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Tue Sep 27 12:04:16 2016 +0000
description:
Add a missing ')' in the call to bswap64().
Should fix compile error of twa module for sparc and sparc64
diffstat:
sys/dev/pci/twa.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6fd34a176e61 -r 9604741f3271 sys/dev/pci/twa.c
--- a/sys/dev/pci/twa.c Tue Sep 27 11:13:57 2016 +0000
+++ b/sys/dev/pci/twa.c Tue Sep 27 12:04:16 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: twa.c,v 1.54 2016/09/27 03:33:32 pgoyette Exp $ */
+/* $NetBSD: twa.c,v 1.55 2016/09/27 12:04:16 pgoyette Exp $ */
/* $wasabi: twa.c,v 1.27 2006/07/28 18:17:21 wrstuden Exp $ */
/*-
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.54 2016/09/27 03:33:32 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.55 2016/09/27 12:04:16 pgoyette Exp $");
//#define TWA_DEBUG
@@ -778,7 +778,7 @@
if (error == 0) {
#if BYTE_ORDER == BIG_ENDIAN
array_size = bswap64(_8btol(
- ((struct scsipi_read_capacity_16_data *)tr->tr_data->addr) + 1);
+ ((struct scsipi_read_capacity_16_data *)tr->tr_data)->addr) + 1);
#else
array_size = _8btol(((struct scsipi_read_capacity_16_data *)
tr->tr_data)->addr) + 1;
Home |
Main Index |
Thread Index |
Old Index