Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/stand/common One more min->uimin straggler con...
details: https://anonhg.NetBSD.org/src/rev/fda077ca55c2
branches: trunk
changeset: 993336:fda077ca55c2
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Sep 05 07:32:45 2018 +0000
description:
One more min->uimin straggler confirmed by 201809042300Z autobuild.
diffstat:
sys/arch/hppa/stand/common/pdc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ff0882884785 -r fda077ca55c2 sys/arch/hppa/stand/common/pdc.c
--- a/sys/arch/hppa/stand/common/pdc.c Wed Sep 05 06:54:29 2018 +0000
+++ b/sys/arch/hppa/stand/common/pdc.c Wed Sep 05 07:32:45 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pdc.c,v 1.1 2014/02/24 07:23:43 skrll Exp $ */
+/* $NetBSD: pdc.c,v 1.2 2018/09/05 07:32:45 riastradh Exp $ */
/* $OpenBSD: pdc.c,v 1.10 1999/05/06 02:27:44 mickey Exp $ */
@@ -101,7 +101,7 @@
err = (*pdc)(PDC_STABLE, PDC_STABLE_SIZE, pdcbuf, 0, 0);
if (err >= 0) {
- sstorsiz = min(pdcbuf[0],sizeof(sstor));
+ sstorsiz = uimin(pdcbuf[0],sizeof(sstor));
err = (*pdc)(PDC_STABLE, PDC_STABLE_READ, 0, &sstor, sstorsiz);
}
@@ -203,7 +203,7 @@
if (dp->last_blk <= blk && (dp->last_blk + dp->last_read) > blk) {
twiddle();
offset = blk - dp->last_blk;
- xfer = min(dp->last_read - offset, size);
+ xfer = uimin(dp->last_read - offset, size);
size -= xfer;
blk += xfer;
#ifdef PDCDEBUG
Home |
Main Index |
Thread Index |
Old Index