Module Name: src
Committed By: rin
Date: Sat Apr 30 03:37:09 UTC 2022
Modified Files:
src/sys/arch/landisk/stand/boot: boot2.c
Log Message:
Fix fallout from libsa change; stand.h includes <sys/param.h> now.
Use '\0' instead of NULL for NUL-character.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/landisk/stand/boot/boot2.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/landisk/stand/boot/boot2.c
diff -u src/sys/arch/landisk/stand/boot/boot2.c:1.6 src/sys/arch/landisk/stand/boot/boot2.c:1.7
--- src/sys/arch/landisk/stand/boot/boot2.c:1.6 Sat Jun 11 06:31:49 2016
+++ src/sys/arch/landisk/stand/boot/boot2.c Sat Apr 30 03:37:09 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: boot2.c,v 1.6 2016/06/11 06:31:49 dholland Exp $ */
+/* $NetBSD: boot2.c,v 1.7 2022/04/30 03:37:09 rin Exp $ */
/*
* Copyright (c) 2003
@@ -479,7 +479,7 @@ parseboot(char *arg, char **filename, in
*howto = 0;
/* if there were no arguments */
- if (*arg == NULL)
+ if (*arg == '\0')
return (1);
/* format is... */
@@ -493,7 +493,7 @@ parseboot(char *arg, char **filename, in
*filename = arg;
opts = gettrailer(arg);
- if (*opts == NULL) {
+ if (*opts == '\0') {
opts = NULL;
} else if (*opts != '-') {
printf("invalid arguments\n");