Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/rs6000/stand/boot Fix fallout from libsa change; st...
details: https://anonhg.NetBSD.org/src/rev/cc3a2f24cea3
branches: trunk
changeset: 365872:cc3a2f24cea3
user: rin <rin%NetBSD.org@localhost>
date: Sat Apr 30 03:59:15 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/rs6000/stand/boot/devopen.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 04c8248c1240 -r cc3a2f24cea3 sys/arch/rs6000/stand/boot/devopen.c
--- a/sys/arch/rs6000/stand/boot/devopen.c Sat Apr 30 03:52:41 2022 +0000
+++ b/sys/arch/rs6000/stand/boot/devopen.c Sat Apr 30 03:59:15 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: devopen.c,v 1.2 2014/08/10 07:40:49 isaki Exp $ */
+/* $NetBSD: devopen.c,v 1.3 2022/04/30 03:59:15 rin Exp $ */
/*-
* Copyright (c) 1993 John Brezak
@@ -73,7 +73,7 @@
if (*s == '(') {
/* lookup device and get index */
- *s = NULL;
+ *s = '\0';
if ((*dev = devlookup(nametmp)) < 0)
goto baddev;
@@ -86,13 +86,13 @@
}
} else {
if (flag) {
- *s = NULL;
+ *s = '\0';
flag = 0;
}
}
}
if (*s == ')')
- *s = NULL;
+ *s = '\0';
switch (argc) {
case 3:
Home |
Main Index |
Thread Index |
Old Index