From 0c61438d074bd2243a0a96056cf290a5fae5dd2f Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 5 Oct 2003 22:20:29 +0000 Subject: Bang head against wall, unbreak ddb, do not collect $2000, and go to sleep. --- sys/arch/mvme88k/ddb/db_interface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/mvme88k/ddb/db_interface.c') diff --git a/sys/arch/mvme88k/ddb/db_interface.c b/sys/arch/mvme88k/ddb/db_interface.c index 12e146b89c5..e3481d15360 100644 --- a/sys/arch/mvme88k/ddb/db_interface.c +++ b/sys/arch/mvme88k/ddb/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.29 2003/10/05 20:23:52 miod Exp $ */ +/* $OpenBSD: db_interface.c,v 1.30 2003/10/05 22:20:28 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -528,7 +528,7 @@ db_read_bytes(db_addr_t addr, size_t size, char *data) src = (char *)addr; - while(--size >= 0) { + while(size-- > 0) { *data++ = *src++; } } @@ -548,7 +548,7 @@ db_write_bytes(db_addr_t addr, size_t size, char *data) dst = (char *)addr; - while (--size >= 0) { + while (size-- > 0) { *dst++ = *data++; } /* XXX test return value */ -- cgit v1.2.3