summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-10-20 19:21:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:02:20 -0500
commit8d48ca63db0ec8dc47a386bd1fa38be2827755f3 (patch)
tree7c2be9da05f2f8ecd04ab99f6919151e4dc7a41d /source4/lib/ldb/tools
parent3b96f7d0dd5936c7c11bdaa1c66ccaff88700386 (diff)
downloadsamba-8d48ca63db0ec8dc47a386bd1fa38be2827755f3.tar.gz
samba-8d48ca63db0ec8dc47a386bd1fa38be2827755f3.tar.bz2
samba-8d48ca63db0ec8dc47a386bd1fa38be2827755f3.zip
r3092: prepare for build inside samba
metze (This used to be commit f7564bf4d2efb702cf3d11237fbe2adf5efb1ebf)
Diffstat (limited to 'source4/lib/ldb/tools')
-rw-r--r--source4/lib/ldb/tools/ldbtest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/ldb/tools/ldbtest.c b/source4/lib/ldb/tools/ldbtest.c
index a5a8ea7a3a..e25a7cbcd6 100644
--- a/source4/lib/ldb/tools/ldbtest.c
+++ b/source4/lib/ldb/tools/ldbtest.c
@@ -39,12 +39,12 @@ static const char *base_dn = "ou=Ldb Test,ou=People,o=University of Michigan,c=U
static struct timeval tp1,tp2;
-static void start_timer(void)
+static void _start_timer(void)
{
gettimeofday(&tp1,NULL);
}
-static double end_timer(void)
+static double _end_timer(void)
{
gettimeofday(&tp2,NULL);
return((tp2.tv_sec - tp1.tv_sec) +
@@ -259,9 +259,9 @@ static void start_test(struct ldb_context *ldb, int nrecords, int nsearches)
add_records(ldb, base_dn, nrecords);
printf("Starting search on uid\n");
- start_timer();
+ _start_timer();
search_uid(ldb, nrecords, nsearches);
- printf("uid search took %.2f seconds\n", end_timer());
+ printf("uid search took %.2f seconds\n", _end_timer());
printf("Modifying records\n");
modify_records(ldb, base_dn, nrecords);