From 3dacf02edbe8266cde9c9618350541cd8dee1993 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sat, 14 Jan 2023 19:52:45 -0500 Subject: 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: --- kern/strings.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'kern/strings.c') diff --git a/kern/strings.c b/kern/strings.c index 71c99050..7e7fda02 100644 --- a/kern/strings.c +++ b/kern/strings.c @@ -173,27 +173,6 @@ strlen( return string - 1 - ret; } -/* - * 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 -- cgit v1.2.3