Author: obnox
Date: 2007-06-15 15:51:45 +0000 (Fri, 15 Jun 2007)
New Revision: 23507

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23507

Log:
Split one general function normalize_dbkey from reg_db.c into util_reg.c
(To be used in other place in subsequent commit.)

Michael


Modified:
   branches/SAMBA_3_0/source/lib/util_reg.c
   branches/SAMBA_3_0/source/registry/reg_db.c
   branches/SAMBA_3_0_26/source/lib/util_reg.c
   branches/SAMBA_3_0_26/source/registry/reg_db.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/util_reg.c
===================================================================
--- branches/SAMBA_3_0/source/lib/util_reg.c    2007-06-15 12:23:14 UTC (rev 
23506)
+++ branches/SAMBA_3_0/source/lib/util_reg.c    2007-06-15 15:51:45 UTC (rev 
23507)
@@ -110,3 +110,10 @@
 
        return WERR_OK;
 }
+
+void normalize_dbkey(char *key)
+{
+       size_t len = strlen(key);
+       string_sub(key, "\\", "/", len+1);
+       strupper_m(key);
+}

Modified: branches/SAMBA_3_0/source/registry/reg_db.c
===================================================================
--- branches/SAMBA_3_0/source/registry/reg_db.c 2007-06-15 12:23:14 UTC (rev 
23506)
+++ branches/SAMBA_3_0/source/registry/reg_db.c 2007-06-15 15:51:45 UTC (rev 
23507)
@@ -697,13 +697,6 @@
        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)
 {

Modified: branches/SAMBA_3_0_26/source/lib/util_reg.c
===================================================================
--- branches/SAMBA_3_0_26/source/lib/util_reg.c 2007-06-15 12:23:14 UTC (rev 
23506)
+++ branches/SAMBA_3_0_26/source/lib/util_reg.c 2007-06-15 15:51:45 UTC (rev 
23507)
@@ -110,3 +110,10 @@
 
        return WERR_OK;
 }
+
+void normalize_dbkey(char *key)
+{
+       size_t len = strlen(key);
+       string_sub(key, "\\", "/", len+1);
+       strupper_m(key);
+}

Modified: branches/SAMBA_3_0_26/source/registry/reg_db.c
===================================================================
--- branches/SAMBA_3_0_26/source/registry/reg_db.c      2007-06-15 12:23:14 UTC 
(rev 23506)
+++ branches/SAMBA_3_0_26/source/registry/reg_db.c      2007-06-15 15:51:45 UTC 
(rev 23507)
@@ -697,13 +697,6 @@
        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)
 {

Reply via email to