summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-01 03:27:41 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-01 03:27:41 +0100
commitdfc78b1dc2738264791e631c599d75e832aebde2 (patch)
treeb5d120bd2fa36d57671b29560058061d9a3df9d0
parentc165770f943d157c11d44566558ae07bf901bd26 (diff)
downloadsamba-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.h4
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