diff options
author | pjd <pjd@FreeBSD.org> | 2006-08-12 15:29:12 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-08-12 15:29:12 +0000 |
commit | b3fb61af6f03138da1ca3d72126613eacb1f301b (patch) | |
tree | 942bb18611d81feccffff0fc4a8bd60e6db6fafa /sys/contrib | |
parent | 8860f3f8782955a4793d8429c1fa52822460291b (diff) | |
download | FreeBSD-src-b3fb61af6f03138da1ca3d72126613eacb1f301b.zip FreeBSD-src-b3fb61af6f03138da1ca3d72126613eacb1f301b.tar.gz |
The strstr() function is in the libkern now.
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/dev/acpica/acfreebsd.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sys/contrib/dev/acpica/acfreebsd.h b/sys/contrib/dev/acpica/acfreebsd.h index 141cd58..91d95e6 100644 --- a/sys/contrib/dev/acpica/acfreebsd.h +++ b/sys/contrib/dev/acpica/acfreebsd.h @@ -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__ */ |