From: Michael Adam Date: Fri, 15 Jun 2007 15:51:45 +0000 (+0000) Subject: r23507: Split one general function normalize_dbkey from reg_db.c into util_reg.c X-Git-Tag: samba-4.0.0alpha6~801^2~5613 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43d59b7d420c3d3e67d98fabac2fe18403f75f4e;p=thirdparty%2Fsamba.git 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) --- 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) {