Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sandpoint/stand/altboot Fix fallout from libsa chan...



details:   https://anonhg.NetBSD.org/src/rev/04c8248c1240
branches:  trunk
changeset: 365871:04c8248c1240
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Apr 30 03:52:41 2022 +0000

description:
Fix fallout from libsa change; stand.h includes <sys/param.h> now.

Do not use NULL for integer 0.

diffstat:

 sys/arch/sandpoint/stand/altboot/dsk.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d745b7b58d6f -r 04c8248c1240 sys/arch/sandpoint/stand/altboot/dsk.c
--- a/sys/arch/sandpoint/stand/altboot/dsk.c    Sat Apr 30 03:37:09 2022 +0000
+++ b/sys/arch/sandpoint/stand/altboot/dsk.c    Sat Apr 30 03:52:41 2022 +0000
@@ -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 @@
 
        dsk = lookup_disk(unit);
        if (dsk == NULL)
-               return NULL;
+               return 0;
        return dsk->dlabel != NULL;
 }
 



Home | Main Index | Thread Index | Old Index