mirror of
https://github.com/samba-team/samba.git
synced 2025-10-23 11:33:16 +03:00
werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source3/registry/
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
0f87084f9c
commit
118ba610b9
@@ -700,7 +700,7 @@ static WERROR reg_deletekey_internal(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
|
||||
if (name[0] == '\0') {
|
||||
err = WERR_INVALID_PARAM;
|
||||
err = WERR_INVALID_PARAMETER;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@@ -908,7 +908,7 @@ WERROR reg_setkeysecurity(struct registry_key *key,
|
||||
WERROR reg_getversion(uint32_t *version)
|
||||
{
|
||||
if (version == NULL) {
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
*version = 0x00000005; /* Windows 2000 registry API version */
|
||||
|
||||
@@ -158,7 +158,7 @@ WERROR reg_delete_path(const struct security_token *token,
|
||||
|
||||
if ((p == NULL) || (p[1] == '\0')) {
|
||||
SAFE_FREE(path);
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
*p = '\0';
|
||||
|
||||
@@ -181,7 +181,7 @@ static WERROR create_key_recursive(struct db_context *db,
|
||||
char *p;
|
||||
|
||||
if (subkey == NULL) {
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
if (path == NULL) {
|
||||
@@ -220,7 +220,7 @@ static WERROR init_registry_key_internal(struct db_context *db,
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
|
||||
if (add_path == NULL) {
|
||||
werr = WERR_INVALID_PARAM;
|
||||
werr = WERR_INVALID_PARAMETER;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@@ -949,7 +949,7 @@ static WERROR regdb_delete_key_with_prefix(struct db_context *db,
|
||||
TALLOC_CTX *mem_ctx = talloc_stackframe();
|
||||
|
||||
if (keyname == NULL) {
|
||||
werr = WERR_INVALID_PARAM;
|
||||
werr = WERR_INVALID_PARAMETER;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@@ -1040,7 +1040,7 @@ static WERROR regdb_store_keys_internal2(struct db_context *db,
|
||||
WERROR werr;
|
||||
|
||||
if (!key) {
|
||||
werr = WERR_INVALID_PARAM;
|
||||
werr = WERR_INVALID_PARAMETER;
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ static WERROR keyname_to_path(TALLOC_CTX *mem_ctx, const char *keyname,
|
||||
char *tmp_path = NULL;
|
||||
|
||||
if ((keyname == NULL) || (path == NULL)) {
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
tmp_path = talloc_asprintf(mem_ctx, "\\%s", keyname);
|
||||
@@ -82,7 +82,7 @@ WERROR reghook_cache_add(const char *keyname, struct registry_ops *ops)
|
||||
char *key = NULL;
|
||||
|
||||
if ((keyname == NULL) || (ops == NULL)) {
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
werr = keyname_to_path(talloc_tos(), keyname, &key);
|
||||
|
||||
@@ -71,7 +71,7 @@ struct regsubkey_ctr {
|
||||
WERROR regsubkey_ctr_init(TALLOC_CTX *mem_ctx, struct regsubkey_ctr **ctr)
|
||||
{
|
||||
if (ctr == NULL) {
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
*ctr = talloc_zero(mem_ctx, struct regsubkey_ctr);
|
||||
@@ -96,7 +96,7 @@ WERROR regsubkey_ctr_init(TALLOC_CTX *mem_ctx, struct regsubkey_ctr **ctr)
|
||||
WERROR regsubkey_ctr_reinit(struct regsubkey_ctr *ctr)
|
||||
{
|
||||
if (ctr == NULL) {
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
talloc_free(ctr->subkeys_hash);
|
||||
@@ -114,7 +114,7 @@ WERROR regsubkey_ctr_reinit(struct regsubkey_ctr *ctr)
|
||||
WERROR regsubkey_ctr_set_seqnum(struct regsubkey_ctr *ctr, int seqnum)
|
||||
{
|
||||
if (ctr == NULL) {
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
ctr->seqnum = seqnum;
|
||||
@@ -173,7 +173,7 @@ static WERROR regsubkey_ctr_index_for_keyname(struct regsubkey_ctr *ctr,
|
||||
NTSTATUS status;
|
||||
|
||||
if ((ctr == NULL) || (keyname == NULL)) {
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
status = dbwrap_fetch_bystring_upper(ctr->subkeys_hash, ctr, keyname,
|
||||
@@ -247,7 +247,7 @@ WERROR regsubkey_ctr_delkey( struct regsubkey_ctr *ctr, const char *keyname )
|
||||
uint32_t idx, j;
|
||||
|
||||
if (keyname == NULL) {
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
/* make sure the keyname is actually already there */
|
||||
@@ -325,7 +325,7 @@ char* regsubkey_ctr_specific_key( struct regsubkey_ctr *ctr, uint32_t key_index
|
||||
WERROR regval_ctr_init(TALLOC_CTX *mem_ctx, struct regval_ctr **ctr)
|
||||
{
|
||||
if (ctr == NULL) {
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
*ctr = talloc_zero(mem_ctx, struct regval_ctr);
|
||||
@@ -605,7 +605,7 @@ int regval_ctr_get_seqnum(struct regval_ctr *ctr)
|
||||
WERROR regval_ctr_set_seqnum(struct regval_ctr *ctr, int seqnum)
|
||||
{
|
||||
if (ctr == NULL) {
|
||||
return WERR_INVALID_PARAM;
|
||||
return WERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
ctr->seqnum = seqnum;
|
||||
|
||||
Reference in New Issue
Block a user