Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/error strcmp returns an int not a ptr so don't compa...
details: https://anonhg.NetBSD.org/src/rev/52dd4042ff9f
branches: trunk
changeset: 499281:52dd4042ff9f
user: christos <christos%NetBSD.org@localhost>
date: Wed Nov 15 19:54:12 2000 +0000
description:
strcmp returns an int not a ptr so don't compare to NULL
diffstat:
usr.bin/error/subr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f8300c4deb14 -r 52dd4042ff9f usr.bin/error/subr.c
--- a/usr.bin/error/subr.c Wed Nov 15 19:31:35 2000 +0000
+++ b/usr.bin/error/subr.c Wed Nov 15 19:54:12 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr.c,v 1.9 2000/01/14 06:53:48 mjl Exp $ */
+/* $NetBSD: subr.c,v 1.10 2000/11/15 19:54:12 christos Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: subr.c,v 1.9 2000/01/14 06:53:48 mjl Exp $");
+__RCSID("$NetBSD: subr.c,v 1.10 2000/11/15 19:54:12 christos Exp $");
#endif /* not lint */
#include <ctype.h>
@@ -388,7 +388,7 @@
for (i = 0; i < wordc; i++){
if (wordv1[i] == NULL || wordv2[i] == NULL)
return(-1);
- if ((back = strcmp(wordv1[i], wordv2[i])) != NULL)
+ if ((back = strcmp(wordv1[i], wordv2[i])) != 0)
return(back);
}
return(0); /* they are equal */
Home |
Main Index |
Thread Index |
Old Index