summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2015-12-03 15:24:29 +0100
committerJeremy Allison <jra@samba.org>2016-09-28 00:04:24 +0200
commitde3883451623e95e40c1ee28522b5af721b9233c (patch)
tree53884307808b69a4cc926407c5f387f048c77dba /source3/registry
parentc80ac76f81130cd0c27bbd5bf21fa7fc4e0fbea1 (diff)
downloadsamba-de3883451623e95e40c1ee28522b5af721b9233c.tar.gz
werror: replace WERR_REG_IO_FAILURE with WERR_REGISTRY_IO_FAILED in source3/registry/
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_api.c6
-rw-r--r--source3/registry/reg_api_regf.c2
-rw-r--r--source3/registry/reg_backend_db.c14
3 files changed, 11 insertions, 11 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index 35d1c83141b..4a68469a54b 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -804,7 +804,7 @@ WERROR reg_setvalue(struct registry_key *key, const char *name,
if (!store_reg_values(key->key, key->values)) {
TALLOC_FREE(key->values);
DEBUG(0, ("reg_setvalue: store_reg_values failed\n"));
- err = WERR_REG_IO_FAILURE;
+ err = WERR_REGISTRY_IO_FAILED;
goto done;
}
@@ -870,7 +870,7 @@ WERROR reg_deletevalue(struct registry_key *key, const char *name)
if (!store_reg_values(key->key, key->values)) {
TALLOC_FREE(key->values);
- err = WERR_REG_IO_FAILURE;
+ err = WERR_REGISTRY_IO_FAILED;
DEBUG(0, ("reg_deletevalue: store_reg_values failed\n"));
goto done;
}
@@ -940,7 +940,7 @@ WERROR reg_deleteallvalues(struct registry_key *key)
if (!store_reg_values(key->key, key->values)) {
TALLOC_FREE(key->values);
- return WERR_REG_IO_FAILURE;
+ return WERR_REGISTRY_IO_FAILED;
}
return WERR_OK;
diff --git a/source3/registry/reg_api_regf.c b/source3/registry/reg_api_regf.c
index 3bf8b1296fd..ea6371f452d 100644
--- a/source3/registry/reg_api_regf.c
+++ b/source3/registry/reg_api_regf.c
@@ -95,7 +95,7 @@ static WERROR reg_load_tree(REGF_FILE *regfile, const char *topkeypath,
|| !store_reg_keys(&registry_key, subkeys))
{
DEBUG(0,("reg_load_tree: Failed to load %s!\n", topkeypath));
- result = WERR_REG_IO_FAILURE;
+ result = WERR_REGISTRY_IO_FAILED;
}
TALLOC_FREE(subkeys);
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 4aaa9a7e8d9..9d511b4f2ac 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -509,7 +509,7 @@ static WERROR regdb_upgrade_v1_to_v2(struct db_context *db)
status = dbwrap_traverse(db, regdb_normalize_keynames_fn, db, NULL);
if (!NT_STATUS_IS_OK(status)) {
- werr = WERR_REG_IO_FAILURE;
+ werr = WERR_REGISTRY_IO_FAILED;
goto done;
}
@@ -704,7 +704,7 @@ static WERROR regdb_upgrade_v2_to_v3(struct db_context *db)
status = dbwrap_traverse(db, regdb_upgrade_v2_to_v3_fn, db, NULL);
if (!NT_STATUS_IS_OK(status)) {
- werr = WERR_REG_IO_FAILURE;
+ werr = WERR_REGISTRY_IO_FAILED;
goto done;
}
@@ -805,7 +805,7 @@ WERROR regdb_init(void)
}
if (dbwrap_transaction_start(regdb) != 0) {
- return WERR_REG_IO_FAILURE;
+ return WERR_REGISTRY_IO_FAILED;
}
if (vers_id == REGDB_VERSION_V1) {
@@ -837,7 +837,7 @@ WERROR regdb_init(void)
/* future upgrade code should go here */
if (dbwrap_transaction_commit(regdb) != 0) {
- return WERR_REG_IO_FAILURE;
+ return WERR_REGISTRY_IO_FAILED;
}
return WERR_OK;
@@ -914,19 +914,19 @@ int regdb_close( void )
WERROR regdb_transaction_start(void)
{
return (dbwrap_transaction_start(regdb) == 0) ?
- WERR_OK : WERR_REG_IO_FAILURE;
+ WERR_OK : WERR_REGISTRY_IO_FAILED;
}
WERROR regdb_transaction_commit(void)
{
return (dbwrap_transaction_commit(regdb) == 0) ?
- WERR_OK : WERR_REG_IO_FAILURE;
+ WERR_OK : WERR_REGISTRY_IO_FAILED;
}
WERROR regdb_transaction_cancel(void)
{
return (dbwrap_transaction_cancel(regdb) == 0) ?
- WERR_OK : WERR_REG_IO_FAILURE;
+ WERR_OK : WERR_REGISTRY_IO_FAILED;
}
/***********************************************************************