Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libutil Don't use NULL to compare against an int.
details: https://anonhg.NetBSD.org/src/rev/deb61c195e12
branches: trunk
changeset: 553732:deb61c195e12
user: fvdl <fvdl%NetBSD.org@localhost>
date: Tue Oct 21 00:55:05 2003 +0000
description:
Don't use NULL to compare against an int.
diffstat:
lib/libutil/login_cap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e2d929cf6fc6 -r deb61c195e12 lib/libutil/login_cap.c
--- a/lib/libutil/login_cap.c Tue Oct 21 00:49:34 2003 +0000
+++ b/lib/libutil/login_cap.c Tue Oct 21 00:55:05 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: login_cap.c,v 1.13 2003/09/08 20:54:48 itojun Exp $ */
+/* $NetBSD: login_cap.c,v 1.14 2003/10/21 00:55:05 fvdl Exp $ */
/*-
* Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved.
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: login_cap.c,v 1.13 2003/09/08 20:54:48 itojun Exp $");
+__RCSID("$NetBSD: login_cap.c,v 1.14 2003/10/21 00:55:05 fvdl Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -119,7 +119,7 @@
case -1:
if ((res = open(classfiles[0], 0)) >= 0)
close(res);
- if (strcmp(lc->lc_class, LOGIN_DEFCLASS) == NULL &&
+ if (strcmp(lc->lc_class, LOGIN_DEFCLASS) == 0 &&
res < 0)
return (lc);
syslog(LOG_ERR, "%s: unknown class", lc->lc_class);
Home |
Main Index |
Thread Index |
Old Index