Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/dev sizeof_t is allways >=0 and the check ...
details: https://anonhg.NetBSD.org/src/rev/409fff264de8
branches: trunk
changeset: 772589:409fff264de8
user: reinoud <reinoud%NetBSD.org@localhost>
date: Mon Jan 09 14:56:35 2012 +0000
description:
sizeof_t is allways >=0 and the check for >=0 thus allways is true and amd64
complains about this. This might explain the odd write errors that could
sometimes be reported. Those are/were probably a side effect of this.
diffstat:
sys/arch/usermode/dev/ld_thunkbus.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 984e8f510c60 -r 409fff264de8 sys/arch/usermode/dev/ld_thunkbus.c
--- a/sys/arch/usermode/dev/ld_thunkbus.c Mon Jan 09 14:31:21 2012 +0000
+++ b/sys/arch/usermode/dev/ld_thunkbus.c Mon Jan 09 14:56:35 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_thunkbus.c,v 1.27 2012/01/06 20:40:51 reinoud Exp $ */
+/* $NetBSD: ld_thunkbus.c,v 1.28 2012/01/09 14:56:35 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.27 2012/01/06 20:40:51 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.28 2012/01/09 14:56:35 reinoud Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -149,7 +149,7 @@
struct ld_thunkbus_transfer *tt = &sc->sc_tt;
struct buf *bp = tt->tt_bp;
off_t offset = bp->b_rawblkno * ld->sc_secsize;
- size_t ret;
+ int64_t ret;
if (!sc->busy)
panic("%s: but not busy?\n", __func__);
Home |
Main Index |
Thread Index |
Old Index