From 43d59b7d420c3d3e67d98fabac2fe18403f75f4e Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 15 Jun 2007 15:51:45 +0000 Subject: 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 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/lib/util_reg.c') 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); +} -- cgit