Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/string NULL does not need a cast
details: https://anonhg.NetBSD.org/src/rev/99ba59200d79
branches: trunk
changeset: 769102:99ba59200d79
user: plunky <plunky%NetBSD.org@localhost>
date: Wed Aug 31 15:48:32 2011 +0000
description:
NULL does not need a cast
diffstat:
common/lib/libc/string/strchr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ab7d097f4e07 -r 99ba59200d79 common/lib/libc/string/strchr.c
--- a/common/lib/libc/string/strchr.c Wed Aug 31 14:42:18 2011 +0000
+++ b/common/lib/libc/string/strchr.c Wed Aug 31 15:48:32 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strchr.c,v 1.4 2009/07/17 19:37:57 dsl Exp $ */
+/* $NetBSD: strchr.c,v 1.5 2011/08/31 15:48:32 plunky Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)index.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: strchr.c,v 1.4 2009/07/17 19:37:57 dsl Exp $");
+__RCSID("$NetBSD: strchr.c,v 1.5 2011/08/31 15:48:32 plunky Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -59,7 +59,7 @@
return(__UNCONST(p));
}
if (!*p)
- return((char *)NULL);
+ return(NULL);
}
/* NOTREACHED */
}
Home |
Main Index |
Thread Index |
Old Index