summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorfvdl <fvdl@NetBSD.org>2003-10-21 00:22:04 +0000
committerfvdl <fvdl@NetBSD.org>2003-10-21 00:22:04 +0000
commit2a11316bc09b857b45793a973e88dde686c9a5c4 (patch)
treef4d2a94a5ccc3a4fd848970d6ea01ac7d8535a34 /sys/dev/raidframe
parent79cc88df4866fd9b0669a437c4ee203aa238a5a9 (diff)
Correct NULL abuse.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_disks.c6
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/raidframe/rf_disks.c b/sys/dev/raidframe/rf_disks.c
index 0c80ad43f30..b97dc104e9a 100644
--- a/sys/dev/raidframe/rf_disks.c
+++ b/sys/dev/raidframe/rf_disks.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_disks.c,v 1.44 2003/06/29 22:30:32 fvdl Exp $ */
+/* $NetBSD: rf_disks.c,v 1.45 2003/10/21 00:22:04 fvdl Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -67,7 +67,7 @@
***************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.44 2003/06/29 22:30:32 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.45 2003/10/21 00:22:04 fvdl Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -629,7 +629,7 @@ rf_ConfigureDisk(raidPtr, buf, diskPtr, row, col)
diskPtr->status = rf_ds_optimal;
raidPtr->raid_cinfo[row][col].ci_vp = NULL;
- raidPtr->raid_cinfo[row][col].ci_dev = NULL;
+ raidPtr->raid_cinfo[row][col].ci_dev = 0;
error = raidlookup(diskPtr->devname, proc, &vp);
if (error) {
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index e200798c5ac..f26ce7ad692 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.162 2003/08/07 16:31:19 agc Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.163 2003/10/21 00:22:04 fvdl Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -146,7 +146,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.162 2003/08/07 16:31:19 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.163 2003/10/21 00:22:04 fvdl Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -3161,7 +3161,7 @@ rf_create_configuration(ac,config,raidPtr)
}
for(i=0;i<RF_MAXDBGV;i++) {
- config->debugVars[i][0] = NULL;
+ config->debugVars[i][0] = 0;
}
}