diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-03-27 16:56:38 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-04-12 07:53:44 +0200 |
commit | 2df155429fe4acd94c46de7a8c8dfbd2832ae9f5 (patch) | |
tree | 71369c13ba2a8eb1b34b62c18dbe0eef4e3d8dad /source | |
parent | 9fb165b8bf40bccfc219a564662d961620877d94 (diff) | |
download | samba-2df155429fe4acd94c46de7a8c8dfbd2832ae9f5.tar.gz samba-2df155429fe4acd94c46de7a8c8dfbd2832ae9f5.tar.xz samba-2df155429fe4acd94c46de7a8c8dfbd2832ae9f5.zip |
regdb: use regdb->transaction_start(regdb) != 0 consistent
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 093c3bced96c934419af69cc065a240368027dcf)
Diffstat (limited to 'source')
-rw-r--r-- | source/registry/reg_backend_db.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/registry/reg_backend_db.c b/source/registry/reg_backend_db.c index 32c6903a655..5fe57643a74 100644 --- a/source/registry/reg_backend_db.c +++ b/source/registry/reg_backend_db.c @@ -177,7 +177,7 @@ fail: */ bool init_registry_key(const char *add_path) { - if (regdb->transaction_start(regdb) == -1) { + if (regdb->transaction_start(regdb) != 0) { DEBUG(0, ("init_registry_key: transaction_start failed\n")); return false; } @@ -220,7 +220,7 @@ bool init_registry_data(void) * transaction behaviour. */ - if (regdb->transaction_start(regdb) == -1) { + if (regdb->transaction_start(regdb) != 0) { DEBUG(0, ("init_registry_data: tdb_transaction_start " "failed\n")); return false; @@ -544,7 +544,7 @@ bool regdb_store_keys(const char *key, REGSUBKEY_CTR *ctr) TALLOC_FREE(old_subkeys); - if (regdb->transaction_start(regdb) == -1) { + if (regdb->transaction_start(regdb) != 0) { DEBUG(0, ("regdb_store_keys: transaction_start failed\n")); goto fail; } |