summaryrefslogtreecommitdiff
path: root/lib/util/util_str.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-02-18 10:44:46 +1100
committerAndrew Tridgell <tridge@samba.org>2011-02-18 15:09:47 +1100
commit40a48f5502e216af2e7e6788694ad4e094f59d83 (patch)
tree2c4c3d2c0650c1d8ea16b6422892f70de2205a0c /lib/util/util_str.c
parent324270ee572c86d48ff1ee84cc16924ef18ee2b9 (diff)
downloadsamba-40a48f5502e216af2e7e6788694ad4e094f59d83.tar.gz
samba-40a48f5502e216af2e7e6788694ad4e094f59d83.tar.bz2
samba-40a48f5502e216af2e7e6788694ad4e094f59d83.zip
s4-util: removed the valgrind_strlen() routine
this was for a bug in valgrind from 7 years ago. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/util/util_str.c')
-rw-r--r--lib/util/util_str.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/util/util_str.c b/lib/util/util_str.c
index 0ea71a8e3c..8695266655 100644
--- a/lib/util/util_str.c
+++ b/lib/util/util_str.c
@@ -112,17 +112,6 @@ _PUBLIC_ char *safe_strcat(char *dest, const char *src, size_t maxlength)
return dest;
}
-#ifdef VALGRIND
-size_t valgrind_strlen(const char *s)
-{
- size_t count;
- for(count = 0; *s++; count++)
- ;
- return count;
-}
-#endif
-
-
/**
format a string into length-prefixed dotted domain format, as used in NBT
and in some ADS structures