From 4b7d7adde46eb098d6ff4a8a0036f701c38d6788 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 5 Oct 2002 01:21:40 +0000 Subject: [PATCH] strstr() is part of libkern now. don't supply another. --- sys/dev/acpi/acpica/Subsystem/acnetbsd.h | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/sys/dev/acpi/acpica/Subsystem/acnetbsd.h b/sys/dev/acpi/acpica/Subsystem/acnetbsd.h index 7aa31993e86c..2c5203cba9e3 100644 --- a/sys/dev/acpi/acpica/Subsystem/acnetbsd.h +++ b/sys/dev/acpi/acpica/Subsystem/acnetbsd.h @@ -1,7 +1,7 @@ /****************************************************************************** * * Name: acnetbsd.h - OS specific defines, etc. - * $Revision: 1.3 $ + * $Revision: 1.4 $ * *****************************************************************************/ @@ -240,26 +240,4 @@ strupr(char *str) return(str); } -#ifdef _KERNEL -/* Or strstr (used in debugging mode, also move to libkern) */ -static __inline char * -strstr(char *s, char *find) -{ - char c, sc; - size_t len; - - if ((c = *find++) != 0) { - len = strlen(find); - do { - do { - if ((sc = *s++) == 0) - return (NULL); - } while (sc != c); - } while (strncmp(s, find, len) != 0); - s--; - } - return ((char *)s); -} -#endif /* _KERNEL */ - #endif /* __ACNETBSD_H__ */