From 8d48ca63db0ec8dc47a386bd1fa38be2827755f3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 20 Oct 2004 19:21:10 +0000 Subject: r3092: prepare for build inside samba metze (This used to be commit f7564bf4d2efb702cf3d11237fbe2adf5efb1ebf) --- source4/lib/ldb/tools/ldbtest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4') 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); -- cgit