From c890aef164e820de99b35a58ed2aee40b45c6a3c Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 11 Apr 2008 21:38:06 +0200 Subject: 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 48745e3fbd6b38f39678938b8c3f145769065e7b) --- source3/registry/reg_util.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/registry') diff --git a/source3/registry/reg_util.c b/source3/registry/reg_util.c index cd0982d09a..e72353e7c5 100644 --- a/source3/registry/reg_util.c +++ b/source3/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 *********************************************************************/ -- cgit