diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/includes.h | 4 | ||||
-rw-r--r-- | source3/lib/util_str.c | 9 | ||||
-rw-r--r-- | source3/tdb/tdbbackup.c | 10 |
3 files changed, 0 insertions, 23 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index 7e5ad0e3cd..b6abdd99ce 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -1220,10 +1220,6 @@ int smb_xvasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE( time_t timegm(struct tm *tm); #endif -#if defined(VALGRIND) -#define strlen(x) valgrind_strlen(x) -#endif - /* * Veritas File System. Often in addition to native. * Quotas different. diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index 924cf9d921..7dd5ee4242 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -1667,12 +1667,3 @@ char * base64_encode_data_blob(DATA_BLOB data) return result; } -#ifdef VALGRIND -size_t valgrind_strlen(const char *s) -{ - size_t count; - for(count = 0; *s++; count++) - ; - return count; -} -#endif diff --git a/source3/tdb/tdbbackup.c b/source3/tdb/tdbbackup.c index 7b344de6c4..36ba7db918 100644 --- a/source3/tdb/tdbbackup.c +++ b/source3/tdb/tdbbackup.c @@ -303,13 +303,3 @@ static void usage(void) return ret; } - -#ifdef VALGRIND -size_t valgrind_strlen(const char *s) -{ - size_t count; - for(count = 0; *s++; count++) - ; - return count; -} -#endif |