summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-27 16:56:38 +0100
committerMichael Adam <obnox@samba.org>2008-03-27 18:14:56 +0100
commit618f22409aad43dbfd1ee3ea71af79225d3b63d7 (patch)
tree1e463c722b62444cfd87ed61a3bbef6a6914318f /source3
parent2a95f3f874aa9943ebec57a89cff1a3f3b101637 (diff)
downloadsamba-618f22409aad43dbfd1ee3ea71af79225d3b63d7.tar.gz
samba-618f22409aad43dbfd1ee3ea71af79225d3b63d7.tar.bz2
samba-618f22409aad43dbfd1ee3ea71af79225d3b63d7.zip
regdb: use regdb->transaction_start(regdb) != 0 consistent
metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit 093c3bced96c934419af69cc065a240368027dcf)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_backend_db.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 8dfb59a43f..3e2502e4f8 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -185,7 +185,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;
}
@@ -228,7 +228,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;
@@ -552,7 +552,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;
}