Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist/ntpd don't return an int casted pointe...
details: https://anonhg.NetBSD.org/src/rev/99261c2b9be2
branches: trunk
changeset: 757428:99261c2b9be2
user: kardel <kardel%NetBSD.org@localhost>
date: Sat Aug 28 20:52:55 2010 +0000
description:
don't return an int casted pointer as 'boolean' value - compare result of strchr with NULL
diffstat:
external/bsd/ntp/dist/ntpd/ntp_scanner.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r e06007089281 -r 99261c2b9be2 external/bsd/ntp/dist/ntpd/ntp_scanner.c
--- a/external/bsd/ntp/dist/ntpd/ntp_scanner.c Sat Aug 28 20:51:08 2010 +0000
+++ b/external/bsd/ntp/dist/ntpd/ntp_scanner.c Sat Aug 28 20:52:55 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntp_scanner.c,v 1.1.1.1 2009/12/13 16:56:14 kardel Exp $ */
+/* $NetBSD: ntp_scanner.c,v 1.2 2010/08/28 20:52:55 kardel Exp $ */
/* ntp_scanner.c
@@ -353,7 +353,7 @@
int ch
)
{
- return (int)strchr(special_chars, ch);
+ return strchr(special_chars, ch) != NULL;
}
Home |
Main Index |
Thread Index |
Old Index