Module Name: src
Committed By: plunky
Date: Wed Aug 31 15:48:32 UTC 2011
Modified Files:
src/common/lib/libc/string: strchr.c
Log Message:
NULL does not need a cast
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/common/lib/libc/string/strchr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/common/lib/libc/string/strchr.c
diff -u src/common/lib/libc/string/strchr.c:1.4 src/common/lib/libc/string/strchr.c:1.5
--- src/common/lib/libc/string/strchr.c:1.4 Fri Jul 17 19:37:57 2009
+++ src/common/lib/libc/string/strchr.c Wed Aug 31 15:48:32 2011
@@ -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 */
}