From c90a12781be9f38ba2f03e903205e347733ff4a9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 4 Sep 2006 13:10:14 +0000 Subject: r18040: Use only one strnlen implementation (This used to be commit 9a421425d242f6e0385414121c114c7c62ea1aaa) --- source4/lib/replace/replace.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'source4/lib/replace/replace.c') diff --git a/source4/lib/replace/replace.c b/source4/lib/replace/replace.c index 5333c6a9fe..1c05c14eb6 100644 --- a/source4/lib/replace/replace.c +++ b/source4/lib/replace/replace.c @@ -375,7 +375,7 @@ void rep_vsyslog (int facility_priority, char *format, va_list arglist) /** Some platforms don't have strnlen **/ - size_t strnlen(const char *s, size_t max) + size_t rep_strnlen(const char *s, size_t max) { size_t len; @@ -540,19 +540,6 @@ char *rep_strtok_r(char *s, const char *delim, char **save_ptr) } #endif -#ifndef HAVE_STRNLEN -/** - Some platforms don't have strnlen -**/ -size_t rep_strnlen(const char *s, size_t n) -{ - int i; - for (i=0; s[i] && i