mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +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:
parent
41fa859f90
commit
c890aef164
@ -110,10 +110,3 @@ WERROR reg_pull_multi_sz(TALLOC_CTX *mem_ctx, const void *buf, size_t len,
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*********************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user