From: Michael Adam Date: Fri, 11 Apr 2008 19:38:06 +0000 (+0200) Subject: registry: move normalize_dbkey() from lib/util_reg.c to registry/reg_util.c X-Git-Tag: samba-3.3.0pre1~2736^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48745e3fbd6b38f39678938b8c3f145769065e7b;p=thirdparty%2Fsamba.git registry: move normalize_dbkey() from lib/util_reg.c to registry/reg_util.c This function is only used inside registry code. Michael --- diff --git a/source/lib/util_reg.c b/source/lib/util_reg.c index 7c0c42d7d83..6570bb072d4 100644 --- a/source/lib/util_reg.c +++ b/source/lib/util_reg.c @@ -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); -} diff --git a/source/registry/reg_util.c b/source/registry/reg_util.c index cd0982d09a7..e72353e7c54 100644 --- a/source/registry/reg_util.c +++ b/source/registry/reg_util.c @@ -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 *********************************************************************/