summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-12-25 02:24:39 +0100
committerMichael Adam <obnox@samba.org>2007-12-25 02:24:39 +0100
commit9c20b9a731d581ae8bbf4f9ef66c3b7ded7e4122 (patch)
tree743fe44d853f12c4b40c4f322a043b2311da20cf
parentc9f65929b733353baec531c4735749a754f051c5 (diff)
downloadsamba-9c20b9a731d581ae8bbf4f9ef66c3b7ded7e4122.tar.gz
samba-9c20b9a731d581ae8bbf4f9ef66c3b7ded7e4122.tar.bz2
samba-9c20b9a731d581ae8bbf4f9ef66c3b7ded7e4122.zip
Rename reg_delkey_internal() to libnet_smbconf_delshare().
Michael (This used to be commit 7d501f0d78ec57509d0bc5ef0dc16fcd24ee27e7)
-rw-r--r--source3/libnet/libnet_conf.c6
-rw-r--r--source3/utils/net_conf.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c
index 30342e1e43..ad02930ce4 100644
--- a/source3/libnet/libnet_conf.c
+++ b/source3/libnet/libnet_conf.c
@@ -243,10 +243,10 @@ done:
*
**********************************************************************/
-/*
- * delete a subkey of KEY_SMBCONF
+/**
+ * delete a service from configuration
*/
-WERROR reg_delkey_internal(TALLOC_CTX *ctx, const char *keyname)
+WERROR libnet_smbconf_delshare(TALLOC_CTX *ctx, const char *keyname)
{
WERROR werr = WERR_OK;
struct registry_key *key = NULL;
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index f45042b2f8..e1b4fe1dfa 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -317,7 +317,7 @@ static int import_process_service(TALLOC_CTX *ctx,
d_printf("[%s]\n", servicename);
} else {
if (libnet_smbconf_key_exists(servicename)) {
- werr = reg_delkey_internal(tmp_ctx, servicename);
+ werr = libnet_smbconf_delshare(tmp_ctx, servicename);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}
@@ -799,7 +799,7 @@ int net_conf_delshare(int argc, const char **argv)
}
sharename = argv[0];
- if (W_ERROR_IS_OK(reg_delkey_internal(NULL, sharename))) {
+ if (W_ERROR_IS_OK(libnet_smbconf_delshare(NULL, sharename))) {
ret = 0;
}
done: