Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/cobalt/cobalt compare pointers with NULL not nul.
details: https://anonhg.NetBSD.org/src/rev/e8d695d48807
branches: trunk
changeset: 448669:e8d695d48807
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Feb 06 21:42:46 2019 +0000
description:
compare pointers with NULL not nul.
diffstat:
sys/arch/cobalt/cobalt/machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 9f76578f6989 -r e8d695d48807 sys/arch/cobalt/cobalt/machdep.c
--- a/sys/arch/cobalt/cobalt/machdep.c Wed Feb 06 20:08:15 2019 +0000
+++ b/sys/arch/cobalt/cobalt/machdep.c Wed Feb 06 21:42:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.121 2018/01/20 13:56:08 skrll Exp $ */
+/* $NetBSD: machdep.c,v 1.122 2019/02/06 21:42:46 mrg Exp $ */
/*-
* Copyright (c) 2006 Izumi Tsutsui. All rights reserved.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.121 2018/01/20 13:56:08 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.122 2019/02/06 21:42:46 mrg Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -399,7 +399,7 @@
/* break apart bootstring on ' ' boundries and itterate */
work = strtok_light(bootstring, ' ');
- while (work != '\0') {
+ while (work != NULL) {
/* if starts with '-', we got options, walk its decode */
if (work[0] == '-') {
i = 1;
@@ -410,7 +410,7 @@
} else
/* if it has a '=' its an assignment, switch and set */
- if ((equ = strchr(work, '=')) != '\0') {
+ if ((equ = strchr(work, '=')) != NULL) {
if (memcmp("nfsroot=", work, 8) == 0) {
nfsroot_bstr = (equ + 1);
} else
Home |
Main Index |
Thread Index |
Old Index