Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 Don't compare a char to NULL.
details: https://anonhg.NetBSD.org/src/rev/5e23dbe5205f
branches: trunk
changeset: 553913:5e23dbe5205f
user: uwe <uwe%NetBSD.org@localhost>
date: Wed Oct 22 21:13:44 2003 +0000
description:
Don't compare a char to NULL.
diffstat:
sys/arch/sh3/sh3/locore_c.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 33cf6cc084de -r 5e23dbe5205f sys/arch/sh3/sh3/locore_c.c
--- a/sys/arch/sh3/sh3/locore_c.c Wed Oct 22 21:10:15 2003 +0000
+++ b/sys/arch/sh3/sh3/locore_c.c Wed Oct 22 21:13:44 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore_c.c,v 1.3 2003/08/07 16:29:29 agc Exp $ */
+/* $NetBSD: locore_c.c,v 1.4 2003/10/22 21:13:44 uwe Exp $ */
/*-
* Copyright (c) 1996, 1997, 2002 The NetBSD Foundation, Inc.
@@ -111,7 +111,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locore_c.c,v 1.3 2003/08/07 16:29:29 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore_c.c,v 1.4 2003/10/22 21:13:44 uwe Exp $");
#include "opt_lockdebug.h"
@@ -272,7 +272,7 @@
int i;
for (i = 0; i < maxlen; i++) {
- if ((*to++ = *from++) == NULL) {
+ if ((*to++ = *from++) == '\0') {
if (lencopied)
*lencopied = i + 1;
return (0);
Home |
Main Index |
Thread Index |
Old Index