Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi/acpica/Subsystem strstr() is part of libkern no...



details:   https://anonhg.NetBSD.org/src/rev/6e3178de3dae
branches:  trunk
changeset: 537720:6e3178de3dae
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 05 01:21:40 2002 +0000

description:
strstr() is part of libkern now. don't supply another.

diffstat:

 sys/dev/acpi/acpica/Subsystem/acnetbsd.h |  24 +-----------------------
 1 files changed, 1 insertions(+), 23 deletions(-)

diffs (39 lines):

diff -r 67a4e395e7d5 -r 6e3178de3dae sys/dev/acpi/acpica/Subsystem/acnetbsd.h
--- a/sys/dev/acpi/acpica/Subsystem/acnetbsd.h  Sat Oct 05 01:11:47 2002 +0000
+++ b/sys/dev/acpi/acpica/Subsystem/acnetbsd.h  Sat Oct 05 01:21:40 2002 +0000
@@ -1,7 +1,7 @@
 /******************************************************************************
  *
  * Name: acnetbsd.h - OS specific defines, etc.
- *       $Revision: 1.3 $
+ *       $Revision: 1.4 $
  *
  *****************************************************************************/
 
@@ -240,26 +240,4 @@
     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__ */



Home | Main Index | Thread Index | Old Index