diff options
Diffstat (limited to 'source4/lib/replace/replace.c')
-rw-r--r-- | source4/lib/replace/replace.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/source4/lib/replace/replace.c b/source4/lib/replace/replace.c index 1cf91751b3..b8f4bc1c3c 100644 --- a/source4/lib/replace/replace.c +++ b/source4/lib/replace/replace.c @@ -387,20 +387,6 @@ duplicate a string } #endif -#ifndef HAVE_STRNLEN -/** - Some platforms don't have strnlen -**/ - - size_t strnlen(const char *s, size_t n) -{ - size_t i; - for (i=0; i<n && s[i] != '\0'; i++) - /* noop */ ; - return i; -} -#endif - #ifndef HAVE_WAITPID int waitpid(pid_t pid,int *status,int options) { |