diff options
-rw-r--r-- | source/lib/util_reg.c | 7 | ||||
-rw-r--r-- | source/registry/reg_util.c | 10 |
2 files changed, 10 insertions, 7 deletions
diff --git a/source/lib/util_reg.c b/source/lib/util_reg.c index 7366dcb2a7f..2db5c7bb55c 100644 --- a/source/lib/util_reg.c +++ b/source/lib/util_reg.c @@ -112,10 +112,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 *********************************************************************/ |