mirror of
https://github.com/samba-team/samba.git
synced 2025-08-31 22:02:58 +03:00
registry: move normalize_dbkey() from lib/util_reg.c to registry/reg_util.c
This function is only used inside registry code.
Michael
(This used to be commit 48745e3fbd
)
This commit is contained in:
@ -110,10 +110,3 @@ WERROR reg_pull_multi_sz(TALLOC_CTX *mem_ctx, const void *buf, size_t len,
|
|||||||
|
|
||||||
return WERR_OK;
|
return WERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void normalize_dbkey(char *key)
|
|
||||||
{
|
|
||||||
size_t len = strlen(key);
|
|
||||||
string_sub(key, "\\", "/", len+1);
|
|
||||||
strupper_m(key);
|
|
||||||
}
|
|
||||||
|
@ -99,6 +99,16 @@ char *normalize_reg_path(TALLOC_CTX *ctx, const char *keyname )
|
|||||||
return nkeyname;
|
return nkeyname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* normalize ther registry path in place.
|
||||||
|
*/
|
||||||
|
void normalize_dbkey(char *key)
|
||||||
|
{
|
||||||
|
size_t len = strlen(key);
|
||||||
|
string_sub(key, "\\", "/", len+1);
|
||||||
|
strupper_m(key);
|
||||||
|
}
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
move to next non-delimter character
|
move to next non-delimter character
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
Reference in New Issue
Block a user