Loading...
string/FreeBSD/index.c Libc-583 Libc-320
--- Libc/Libc-583/string/FreeBSD/index.c
+++ Libc/Libc-320/string/FreeBSD/index.c
@@ -35,7 +35,7 @@
 static char sccsid[] = "@(#)index.c	8.1 (Berkeley) 6/4/93";
 #endif /* LIBC_SCCS and not lint */
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/lib/libc/string/index.c,v 1.7 2003/12/18 07:44:53 jkh Exp $");
+__FBSDID("$FreeBSD: src/lib/libc/string/index.c,v 1.5 2002/08/30 19:42:07 robert Exp $");
 
 #include <stddef.h>
 
@@ -52,11 +52,8 @@
 #endif
 (const char *p, int ch)
 {
-	char c;
-
-	c = ch;
 	for (;; ++p) {
-		if (*p == c)
+		if (*p == ch)
 			return ((char *)p);
 		if (*p == '\0')
 			return (NULL);