aboutsummaryrefslogtreecommitdiff
path: root/kern/strings.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-14 19:52:45 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-15 14:41:55 +0100
commit3dacf02edbe8266cde9c9618350541cd8dee1993 (patch)
treee8022ad0cc9ad3db0a5ef2ce3a5ce8de701bd4b9 /kern/strings.c
parent18cb5a4483435bfde07113f73f435638713907d7 (diff)
downloadgnumach-3dacf02edbe8266cde9c9618350541cd8dee1993.tar.gz
gnumach-3dacf02edbe8266cde9c9618350541cd8dee1993.tar.bz2
gnumach-3dacf02edbe8266cde9c9618350541cd8dee1993.zip
Delete ffs and strrchr prototypes.
We use __builtin_ffs instead of ffs. strrchr is not used. Also removed the commented out memset implementation since it is implemented in arch-specific code. Message-Id: <Y8NOXbVzhBJknR29@mercury.tail36e24.ts.net>
Diffstat (limited to 'kern/strings.c')
-rw-r--r--kern/strings.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/kern/strings.c b/kern/strings.c
index 71c99050..7e7fda02 100644
--- a/kern/strings.c
+++ b/kern/strings.c
@@ -175,27 +175,6 @@ strlen(
/*
* Abstract:
- * memset writes value "c" in the "n" bytes starting at address "s".
- * The return value is a pointer to the "s" string.
- */
-
-#if 0
-void *
-memset(
- void *_s, int c, size_t n)
-{
- char *s = _s;
- size_t i;
-
- for (i = 0; i < n ; i++)
- s[i] = c;
-
- return _s;
-}
-#endif
-
-/*
- * Abstract:
* strchr returns a pointer to the first occurrence of the character
* "c" in the string "s". If "c" is not found, return NULL.
*/