git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c165770
)
Only provide valgrind_strlen prototype when it's being compiled in.
author
Jelmer Vernooij
<jelmer@samba.org>
Sat, 1 Nov 2008 02:27:41 +0000
(
03:27
+0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Sat, 1 Nov 2008 02:27:41 +0000
(
03:27
+0100)
lib/util/util.h
patch
|
blob
|
history
diff --git
a/lib/util/util.h
b/lib/util/util.h
index bfd09ba20be21fe5d67f22e20977af7375093ecf..66861fba8b2cdd616d0dafce467e25b407693fd3 100644
(file)
--- 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)
+#if
def 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