summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-11 21:38:06 +0200
committerMichael Adam <obnox@samba.org>2008-04-12 02:41:20 +0200
commitc890aef164e820de99b35a58ed2aee40b45c6a3c (patch)
treed7c5698ca72f3ce8a5b844a29b686e5d054d7920
parent41fa859f905c906b5c314496ea4377c4b7271ade (diff)
downloadsamba-c890aef164e820de99b35a58ed2aee40b45c6a3c.tar.gz
samba-c890aef164e820de99b35a58ed2aee40b45c6a3c.tar.bz2
samba-c890aef164e820de99b35a58ed2aee40b45c6a3c.zip
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)
-rw-r--r--source3/lib/util_reg.c7
-rw-r--r--source3/registry/reg_util.c10
2 files changed, 10 insertions, 7 deletions
diff --git a/source3/lib/util_reg.c b/source3/lib/util_reg.c
index 7c0c42d7d8..6570bb072d 100644
--- a/source3/lib/util_reg.c
+++ b/source3/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/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
*********************************************************************/