summaryrefslogtreecommitdiff
path: root/lib/tdb2/test
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:52:13 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:52:13 +0930
commit61095999cc158482f68fa53f16160033128615e8 (patch)
tree998a9345aec2084538f30196a5b2ac94ef48da51 /lib/tdb2/test
parent02f5b8fef868b7f77f1ac385740328757bff4d93 (diff)
downloadsamba-61095999cc158482f68fa53f16160033128615e8.tar.gz
samba-61095999cc158482f68fa53f16160033128615e8.tar.bz2
samba-61095999cc158482f68fa53f16160033128615e8.zip
tdb2: unify tdb1_append into tdb_append
Switch on the TDB_VERSION1 flag. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 8bc38cb177928ef739440c32e33a8eaf23a5dd22)
Diffstat (limited to 'lib/tdb2/test')
-rw-r--r--lib/tdb2/test/run-tdb1-zero-append.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tdb2/test/run-tdb1-zero-append.c b/lib/tdb2/test/run-tdb1-zero-append.c
index 560b5bc8dd..fdc9cdce35 100644
--- a/lib/tdb2/test/run-tdb1-zero-append.c
+++ b/lib/tdb2/test/run-tdb1-zero-append.c
@@ -25,8 +25,8 @@ int main(int argc, char *argv[])
data.dptr = (void *)"world";
data.dsize = 0;
- ok1(tdb1_append(tdb, key, data) == 0);
- ok1(tdb1_append(tdb, key, data) == 0);
+ ok1(tdb_append(tdb, key, data) == TDB_SUCCESS);
+ ok1(tdb_append(tdb, key, data) == TDB_SUCCESS);
ok1(tdb_fetch(tdb, key, &data) == TDB_SUCCESS);
ok1(data.dsize == 0);
free(data.dptr);