r10469: use the older style of structure initialisation for tdb to make it
authorAndrew Tridgell <tridge@samba.org>
Sat, 24 Sep 2005 06:53:24 +0000 (06:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:38:50 +0000 (13:38 -0500)
more portable. tdb is used in more than just Samba4, and I think the
portability/readability balance is a bit different
(This used to be commit fc692dc61f06d61cb9126d2a8ccc240cecd11da6)

source4/lib/tdb/common/io.c
source4/lib/tdb/common/transaction.c

index 355f76962f34067ee5f576fae0d726e7765b316d..0a910270c940f4d3ae45827288fd0f87eac7b838 100644 (file)
@@ -395,12 +395,12 @@ int tdb_rec_write(struct tdb_context *tdb, tdb_off_t offset, struct list_struct
 }
 
 static const struct tdb_methods io_methods = {
-       .tdb_read        = tdb_read,
-       .tdb_write       = tdb_write,
-       .next_hash_chain = tdb_next_hash_chain,
-       .tdb_oob         = tdb_oob,
-       .tdb_expand_file = tdb_expand_file,
-       .tdb_brlock      = tdb_brlock
+       tdb_read,
+       tdb_write,
+       tdb_next_hash_chain,
+       tdb_oob,
+       tdb_expand_file,
+       tdb_brlock
 };
 
 /*
index 73c0587a40c6d0dffd8ee1251ce4b827c9943da4..fdcba110c20ebc96b3c18b450e75dc17abe5ba79 100644 (file)
@@ -337,12 +337,12 @@ int transaction_brlock(struct tdb_context *tdb, tdb_off_t offset,
 }
 
 static const struct tdb_methods transaction_methods = {
-       .tdb_read        = transaction_read,
-       .tdb_write       = transaction_write,
-       .next_hash_chain = transaction_next_hash_chain,
-       .tdb_oob         = transaction_oob,
-       .tdb_expand_file = transaction_expand_file,
-       .tdb_brlock      = transaction_brlock
+       transaction_read,
+       transaction_write,
+       transaction_next_hash_chain,
+       transaction_oob,
+       transaction_expand_file,
+       transaction_brlock
 };