summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-06-15 15:51:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:22 -0500
commit43d59b7d420c3d3e67d98fabac2fe18403f75f4e (patch)
treeda815891462fc2b984e406e00a1c14694ab778ce /source3
parent9bb19474d77d5519acec35cd468dbb4d0347ed4b (diff)
downloadsamba-43d59b7d420c3d3e67d98fabac2fe18403f75f4e.tar.gz
samba-43d59b7d420c3d3e67d98fabac2fe18403f75f4e.tar.bz2
samba-43d59b7d420c3d3e67d98fabac2fe18403f75f4e.zip
r23507: Split one general function normalize_dbkey from reg_db.c into util_reg.c
(To be used in other place in subsequent commit.) Michael (This used to be commit 6fd71140499e30b8fd0f083301512db7b8c2f236)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_reg.c7
-rw-r--r--source3/registry/reg_db.c7
2 files changed, 7 insertions, 7 deletions
diff --git a/source3/lib/util_reg.c b/source3/lib/util_reg.c
index e75d72ac24..ed9f0a6817 100644
--- a/source3/lib/util_reg.c
+++ b/source3/lib/util_reg.c
@@ -110,3 +110,10 @@ 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_db.c b/source3/registry/reg_db.c
index 8c6c5aacd8..cea089a9db 100644
--- a/source3/registry/reg_db.c
+++ b/source3/registry/reg_db.c
@@ -697,13 +697,6 @@ BOOL regdb_store_values( const char *key, REGVAL_CTR *values )
return ret != -1 ;
}
-void normalize_dbkey(char *key)
-{
- size_t len = strlen(key);
- string_sub(key, "\\", "/", len+1);
- strupper_m(key);
-}
-
static WERROR regdb_get_secdesc(TALLOC_CTX *mem_ctx, const char *key,
struct security_descriptor **psecdesc)
{