Rename libnet_smbconf_reg_open_basekey() to libnet_conf_reg_open_base_key().
authorMichael Adam <obnox@samba.org>
Thu, 3 Jan 2008 12:38:55 +0000 (13:38 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 3 Jan 2008 13:17:48 +0000 (14:17 +0100)
Michael
(This used to be commit c2ba52b2c34abc42b4ff7945715dc36e08a2f112)

source3/libnet/libnet_conf.c

index 735fddcfd20e729c9e19281878049608f71e1bf9..53d70bd4f632b5e2742db1141da62cebf0365a9b 100644 (file)
@@ -127,9 +127,9 @@ done:
 /*
  * open the base key KEY_SMBCONF
  */
-static WERROR libnet_smbconf_reg_open_basekey(TALLOC_CTX *ctx,
-                                             uint32 desired_access,
-                                             struct registry_key **key)
+static WERROR libnet_conf_reg_open_base_key(TALLOC_CTX *ctx,
+                                           uint32 desired_access,
+                                           struct registry_key **key)
 {
        return libnet_conf_reg_open_path(ctx, KEY_SMBCONF, desired_access, key);
 }
@@ -171,8 +171,8 @@ static WERROR libnet_smbconf_reg_create_service_key(TALLOC_CTX *ctx,
                goto done;
        }
 
-       werr = libnet_smbconf_reg_open_basekey(create_ctx, REG_KEY_WRITE,
-                                              &create_parent);
+       werr = libnet_conf_reg_open_base_key(create_ctx, REG_KEY_WRITE,
+                                            &create_parent);
        if (!W_ERROR_IS_OK(werr)) {
                goto done;
        }
@@ -548,9 +548,8 @@ WERROR libnet_smbconf_get_share_names(TALLOC_CTX *mem_ctx, uint32_t *num_shares,
                added_count++;
        }
 
-       werr = libnet_smbconf_reg_open_basekey(tmp_ctx,
-                                              SEC_RIGHTS_ENUM_SUBKEYS,
-                                              &key);
+       werr = libnet_conf_reg_open_base_key(tmp_ctx, SEC_RIGHTS_ENUM_SUBKEYS,
+                                            &key);
        if (!W_ERROR_IS_OK(werr)) {
                goto done;
        }
@@ -664,7 +663,7 @@ WERROR libnet_smbconf_delshare(const char *servicename)
        struct registry_key *key = NULL;
        TALLOC_CTX *ctx = talloc_stackframe();
 
-       werr = libnet_smbconf_reg_open_basekey(ctx, REG_KEY_WRITE, &key);
+       werr = libnet_conf_reg_open_base_key(ctx, REG_KEY_WRITE, &key);
        if (!W_ERROR_IS_OK(werr)) {
                goto done;
        }