diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-01 03:27:41 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-01 03:27:41 +0100 |
commit | dfc78b1dc2738264791e631c599d75e832aebde2 (patch) | |
tree | b5d120bd2fa36d57671b29560058061d9a3df9d0 | |
parent | c165770f943d157c11d44566558ae07bf901bd26 (diff) | |
download | samba-dfc78b1dc2738264791e631c599d75e832aebde2.tar.gz samba-dfc78b1dc2738264791e631c599d75e832aebde2.tar.bz2 samba-dfc78b1dc2738264791e631c599d75e832aebde2.zip |
Only provide valgrind_strlen prototype when it's being compiled in.
-rw-r--r-- | lib/util/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/util.h b/lib/util/util.h index bfd09ba20b..66861fba8b 100644 --- a/lib/util/util.h +++ b/lib/util/util.h @@ -61,8 +61,9 @@ extern const char *panic_action; #endif #if _SAMBA_BUILD_ == 4 -#if defined(VALGRIND) +#ifdef VALGRIND #define strlen(x) valgrind_strlen(x) +size_t valgrind_strlen(const char *s); #endif #endif @@ -269,7 +270,6 @@ _PUBLIC_ void all_string_sub(char *s,const char *pattern,const char *insert, siz Unescape a URL encoded string, in place. **/ _PUBLIC_ void rfc1738_unescape(char *buf); -size_t valgrind_strlen(const char *s); /** format a string into length-prefixed dotted domain format, as used in NBT |