summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-12-11 23:54:40 +0000
committerJeremy Allison <jra@samba.org>2002-12-11 23:54:40 +0000
commit39c78bf516f4db59fd3c218f67d13dd658daf558 (patch)
tree6ae1bf309e022605c3256546c2960f4a10295e4b /source3/tdb
parentf2def025e277081ac86d68060fed3e10994eaa44 (diff)
downloadsamba-39c78bf516f4db59fd3c218f67d13dd658daf558.tar.gz
samba-39c78bf516f4db59fd3c218f67d13dd658daf558.tar.bz2
samba-39c78bf516f4db59fd3c218f67d13dd658daf558.zip
Fixed auth module code. Added VALGRIND defines to reduce spurious warnings.
Jeremy. (This used to be commit ec4ed45563f9d8e25fcfd88840944a90b3139c3e)
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdbbackup.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/tdb/tdbbackup.c b/source3/tdb/tdbbackup.c
index 36ba7db918..7b344de6c4 100644
--- a/source3/tdb/tdbbackup.c
+++ b/source3/tdb/tdbbackup.c
@@ -303,3 +303,13 @@ static void usage(void)
return ret;
}
+
+#ifdef VALGRIND
+size_t valgrind_strlen(const char *s)
+{
+ size_t count;
+ for(count = 0; *s++; count++)
+ ;
+ return count;
+}
+#endif