diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-09-04 10:12:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:43:24 -0500 |
commit | c49961b785b42aa6ce8ca852f268356b64d50dcc (patch) | |
tree | cc7c7217f6cc2631bdfd0ad34cf96d1a07c1cf18 | |
parent | 6655e1e997fa96408ce257f1c96773db4551f69f (diff) | |
download | samba-c49961b785b42aa6ce8ca852f268356b64d50dcc.tar.gz samba-c49961b785b42aa6ce8ca852f268356b64d50dcc.tar.bz2 samba-c49961b785b42aa6ce8ca852f268356b64d50dcc.zip |
r18030: When compiling with C++, nested structs lead to nested class definitions which
are not compatible. I am aware that this would be a huge change in Samba4, but
I would like to see it in the code that is shared.
Stefan, when you do merge work, can you get this across to Samba4?
Thanks,
Volker
(This used to be commit 959ea2c7dc3ab42a06ac74dc4767d7d06e525cbc)
-rw-r--r-- | source3/tdb/common/transaction.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/tdb/common/transaction.c b/source3/tdb/common/transaction.c index b71728db5c..8e21e3ad87 100644 --- a/source3/tdb/common/transaction.c +++ b/source3/tdb/common/transaction.c @@ -88,6 +88,12 @@ */ +struct tdb_transaction_el { + struct tdb_transaction_el *next, *prev; + tdb_off_t offset; + tdb_len_t length; + unsigned char *data; +}; /* hold the context of any current transaction @@ -105,12 +111,7 @@ struct tdb_transaction { ordered, with first element at the front of the list. It needs to be doubly linked as the read/write traversals need to be backwards, while the commit needs to be forwards */ - struct tdb_transaction_el { - struct tdb_transaction_el *next, *prev; - tdb_off_t offset; - tdb_len_t length; - unsigned char *data; - } *elements, *elements_last; + struct tdb_transaction_el *elements, *elements_last; /* non-zero when an internal transaction error has occurred. All write operations will then fail until the |