1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

Only provide valgrind_strlen prototype when it's being compiled in.

This commit is contained in:
Jelmer Vernooij 2008-11-01 03:27:41 +01:00
parent c165770f94
commit dfc78b1dc2

View File

@ -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