Module Name: src
Committed By: rin
Date: Sat Apr 30 03:52:41 UTC 2022
Modified Files:
src/sys/arch/sandpoint/stand/altboot: dsk.c
Log Message:
Fix fallout from libsa change; stand.h includes <sys/param.h> now.
Do not use NULL for integer 0.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/sandpoint/stand/altboot/dsk.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sandpoint/stand/altboot/dsk.c
diff -u src/sys/arch/sandpoint/stand/altboot/dsk.c:1.18 src/sys/arch/sandpoint/stand/altboot/dsk.c:1.19
--- src/sys/arch/sandpoint/stand/altboot/dsk.c:1.18 Tue Sep 29 15:12:52 2015
+++ src/sys/arch/sandpoint/stand/altboot/dsk.c Sat Apr 30 03:52:41 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: dsk.c,v 1.18 2015/09/29 15:12:52 phx Exp $ */
+/* $NetBSD: dsk.c,v 1.19 2022/04/30 03:52:41 rin Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -473,7 +473,7 @@ dlabel_valid(int unit)
dsk = lookup_disk(unit);
if (dsk == NULL)
- return NULL;
+ return 0;
return dsk->dlabel != NULL;
}