From 43d59b7d420c3d3e67d98fabac2fe18403f75f4e Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 15 Jun 2007 15:51:45 +0000 Subject: [PATCH] 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) --- source3/lib/util_reg.c | 7 +++++++ source3/registry/reg_db.c | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source3/lib/util_reg.c b/source3/lib/util_reg.c index e75d72ac249..ed9f0a68177 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 8c6c5aacd84..cea089a9db1 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) { -- 2.11.4.GIT