diff options
author | Martin Pool <mbp@samba.org> | 2003-03-11 07:25:48 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2003-03-11 07:25:48 +0000 |
commit | 2e01ef5957bcdecb057d94122529b7cbd7f40ec2 (patch) | |
tree | 8690b312e9991d5ed9841bb6bb8b406a6d5758d4 /source3 | |
parent | 6f7ac2dcab02a0babf4c18e6fe1d1697943bddfc (diff) | |
download | samba-2e01ef5957bcdecb057d94122529b7cbd7f40ec2.tar.gz samba-2e01ef5957bcdecb057d94122529b7cbd7f40ec2.tar.bz2 samba-2e01ef5957bcdecb057d94122529b7cbd7f40ec2.zip |
Remove valgrind_strlen function, hopefully no longer needed with
recent Valgrind relases and clashing with -DVALGRIND.
(This used to be commit 98479f1315cf8968152e1566966ac57e171008c3)
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 |