Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/acorn32/stand/boot32 Fix fallout from libsa change;...



details:   https://anonhg.NetBSD.org/src/rev/ffb75e04552c
branches:  trunk
changeset: 365866:ffb75e04552c
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Apr 29 21:03:08 2022 +0000

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

Use '\0' instead of NULL for NUL-character.

diffstat:

 sys/arch/acorn32/stand/boot32/boot32.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f7a4560b4653 -r ffb75e04552c sys/arch/acorn32/stand/boot32/boot32.c
--- a/sys/arch/acorn32/stand/boot32/boot32.c    Fri Apr 29 20:48:26 2022 +0000
+++ b/sys/arch/acorn32/stand/boot32/boot32.c    Fri Apr 29 21:03:08 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot32.c,v 1.48 2021/11/10 15:33:26 msaitoh Exp $      */
+/*     $NetBSD: boot32.c,v 1.49 2022/04/29 21:03:08 rin Exp $  */
 
 /*-
  * Copyright (c) 2002 Reinoud Zandijk
@@ -1070,7 +1070,7 @@
        static char filename[80];
 
        *howto = 0;
-       *file = NULL; *start_args = 1;
+       *file = '\0'; *start_args = 1;
        for (i = 1; i < argc; i++) {
                if (argv[i][0] == '-')
                        for (j = 1; argv[i][j]; j++)
@@ -1085,7 +1085,7 @@
                        break;
                }
        }
-       if (*file == NULL) {
+       if (*file == '\0') {
                if (*howto & RB_ASKNAME) {
                        printf("boot: ");
                        kgets(filename, sizeof(filename));



Home | Main Index | Thread Index | Old Index