1
0
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:
Michael Adam
2008-04-11 21:38:06 +02:00
parent 41fa859f90
commit c890aef164
2 changed files with 10 additions and 7 deletions

View File

@ -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);
}

View File

@ -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
*********************************************************************/ *********************************************************************/