diff options
author | Volker Lendecke <vl@samba.org> | 2013-03-18 14:39:04 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-03-26 10:11:48 +0100 |
commit | c8c0bf74805c61b1379dab1d4529df0004872bb4 (patch) | |
tree | 0e68bea6115c3695b2b488f2441ed2d5ddc7115f /lib/tdb/tools/tdbtest.c | |
parent | a92c08e18bca2f1db671dc5e2d0db4adbf39752d (diff) | |
download | samba-c8c0bf74805c61b1379dab1d4529df0004872bb4.tar.gz samba-c8c0bf74805c61b1379dab1d4529df0004872bb4.tar.bz2 samba-c8c0bf74805c61b1379dab1d4529df0004872bb4.zip |
tdb: Fix blank line endings
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/tdb/tools/tdbtest.c')
-rw-r--r-- | lib/tdb/tools/tdbtest.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tdb/tools/tdbtest.c b/lib/tdb/tools/tdbtest.c index 44c78efda5..0be35dc303 100644 --- a/lib/tdb/tools/tdbtest.c +++ b/lib/tdb/tools/tdbtest.c @@ -24,7 +24,7 @@ static void _start_timer(void) static double _end_timer(void) { gettimeofday(&tp2,NULL); - return((tp2.tv_sec - tp1.tv_sec) + + return((tp2.tv_sec - tp1.tv_sec) + (tp2.tv_usec - tp1.tv_usec)*1.0e-6); } @@ -40,7 +40,7 @@ static void tdb_log(struct tdb_context *tdb, int level, const char *format, ...) static void tdb_log(struct tdb_context *tdb, int level, const char *format, ...) { va_list ap; - + va_start(ap, format); vfprintf(stdout, format, ap); va_end(ap); @@ -189,15 +189,15 @@ static void merge_test(void) char keys[5][2]; char tdata[] = "test"; TDB_DATA key, data; - + for (i = 0; i < 5; i++) { snprintf(keys[i],2, "%d", i); key.dptr = keys[i]; key.dsize = 2; - + data.dptr = tdata; data.dsize = 4; - + if (tdb_store(db, key, data, TDB_REPLACE) != 0) { fatal("tdb_store failed"); } @@ -248,7 +248,7 @@ static char *test_path(const char *filename) db = tdb_open(test_tdb, 0, TDB_CLEAR_IF_FIRST, O_RDWR | O_CREAT | O_TRUNC, 0600); - gdbm = gdbm_open(test_gdbm, 512, GDBM_WRITER|GDBM_NEWDB|GDBM_FAST, + gdbm = gdbm_open(test_gdbm, 512, GDBM_WRITER|GDBM_NEWDB|GDBM_FAST, 0600, NULL); if (!db || !gdbm) { |