Module Name:src
Committed By: rin
Date: Fri Apr 29 21:03:08 UTC 2022
Modified Files:
src/sys/arch/acorn32/stand/boot32: boot32.c
Log Message:
Fix fallout from libsa change; stand.h includes now.
Use '\0' instead of NULL for NUL-character.
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/acorn32/stand/boot32/boot32.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/acorn32/stand/boot32/boot32.c
diff -u src/sys/arch/acorn32/stand/boot32/boot32.c:1.48 src/sys/arch/acorn32/stand/boot32/boot32.c:1.49
--- src/sys/arch/acorn32/stand/boot32/boot32.c:1.48 Wed Nov 10 15:33:26 2021
+++ src/sys/arch/acorn32/stand/boot32/boot32.c Fri Apr 29 21:03:08 2022
@@ -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 @@ process_args(int argc, char **argv, int
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 @@ process_args(int argc, char **argv, int
break;
}
}
- if (*file == NULL) {
+ if (*file == '\0') {
if (*howto & RB_ASKNAME) {
printf("boot: ");
kgets(filename, sizeof(filename));