Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mac68k/mac68k Fix that last warning in a prettier (...
details: https://anonhg.NetBSD.org/src/rev/55122ac75cdf
branches: trunk
changeset: 554430:55122ac75cdf
user: fredb <fredb%NetBSD.org@localhost>
date: Tue Oct 28 04:56:23 2003 +0000
description:
Fix that last warning in a prettier (and less befuddling) way, as
suggested by Dave Huang.
diffstat:
sys/arch/mac68k/mac68k/macrom.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7194bd2ea615 -r 55122ac75cdf sys/arch/mac68k/mac68k/macrom.c
--- a/sys/arch/mac68k/mac68k/macrom.c Tue Oct 28 04:00:51 2003 +0000
+++ b/sys/arch/mac68k/mac68k/macrom.c Tue Oct 28 04:56:23 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: macrom.c,v 1.53 2003/10/27 23:11:23 fredb Exp $ */
+/* $NetBSD: macrom.c,v 1.54 2003/10/28 04:56:23 fredb Exp $ */
/*-
* Copyright (C) 1994 Bradley A. Grantham
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: macrom.c,v 1.53 2003/10/27 23:11:23 fredb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: macrom.c,v 1.54 2003/10/28 04:56:23 fredb Exp $");
#include "opt_adb.h"
#include "opt_ddb.h"
@@ -178,7 +178,7 @@
__asm __volatile ("movl %%a0,%0" : "=g" (ptr));
(caddr_t *)prev = &mrg_DTList;
- while (*prev != 0)
+ while (*(caddr_t *)prev != NULL)
prev = *(caddr_t *)prev;
*(caddr_t *)ptr = NULL;
*(caddr_t *)prev = ptr;
Home |
Main Index |
Thread Index |
Old Index