The strstr() function is in the libkern now.

This commit is contained in:
Pawel Jakub Dawidek 2006-08-12 15:29:12 +00:00
parent 73c0c41140
commit dbb78f2906

View File

@ -169,26 +169,4 @@
/* Always use FreeBSD code over our local versions */
#define ACPI_USE_SYSTEM_CLIBRARY
#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 /* __ACFREEBSD_H__ */