From 137eabcb9082496664d4583907ea638fec903c15 Mon Sep 17 00:00:00 2001 From: fredb Date: Tue, 28 Oct 2003 04:56:23 +0000 Subject: [PATCH] Fix that last warning in a prettier (and less befuddling) way, as suggested by Dave Huang. --- sys/arch/mac68k/mac68k/macrom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/mac68k/mac68k/macrom.c b/sys/arch/mac68k/mac68k/macrom.c index 2a4b57eeeae1..88d435a2c960 100644 --- a/sys/arch/mac68k/mac68k/macrom.c +++ b/sys/arch/mac68k/mac68k/macrom.c @@ -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 -__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 @@ mrg_DTInstall() __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;