summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/strchr.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-11-25 18:25:25 +0000
committerderaadt <deraadt@openbsd.org>2007-11-25 18:25:25 +0000
commit4d6af78a85c54abcce707f76977611c77d8dfe20 (patch)
tree04014b8faba6f61654418ba7ebb480ab63fc1ea7 /sys/lib/libkern/strchr.c
parenttypo; ok jmc@, deanna@ (diff)
downloadwireguard-openbsd-4d6af78a85c54abcce707f76977611c77d8dfe20.tar.xz
wireguard-openbsd-4d6af78a85c54abcce707f76977611c77d8dfe20.zip
libkern, begone. Move to a new mechanism where config(8)'s "file"
directive can select between MI and MD versions of these files. At the same time, adjust the boot programs to pick exactly what they need, instead of the 7 or 8 mechanisms previously used. There will be some fallout from this, but testing it all by myself is a ridiculously slow process; it will be finished in-tree. Various developers were very nice and avoided making fun of me when I was gibbering in the corner..
Diffstat (limited to 'sys/lib/libkern/strchr.c')
-rw-r--r--sys/lib/libkern/strchr.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/lib/libkern/strchr.c b/sys/lib/libkern/strchr.c
index d4ede9b8e9d..9af2ea0ac5c 100644
--- a/sys/lib/libkern/strchr.c
+++ b/sys/lib/libkern/strchr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strchr.c,v 1.3 2004/05/06 01:12:05 deraadt Exp $ */
+/* $OpenBSD: strchr.c,v 1.4 2007/11/25 18:25:34 deraadt Exp $ */
/*
* Copyright (c) 2004 Daniel Hartmeier
@@ -30,10 +30,6 @@
*
*/
-#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strchr.c,v 1.3 2004/05/06 01:12:05 deraadt Exp $";
-#endif /* LIBC_SCCS and not lint */
-
#include <sys/types.h>
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
@@ -52,16 +48,3 @@ strchr(const char *s, int c)
}
return (NULL);
}
-
-char *
-strrchr(const char *s, int c)
-{
- char *t = NULL;
-
- while (*s) {
- if (*s == c)
- t = (char *)s;
- s++;
- }
- return (t);
-}