summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-03 13:36:25 +0100
committerMichael Adam <obnox@samba.org>2008-01-03 14:17:48 +0100
commitdde8701b85d88a5536a21d80a161c67c7e8634c9 (patch)
treedf87abe591bfb51d82ed30f38b9d13e1f6272a17
parente598b93d2faf568c6ac03b0ca32dcf22fa0e1352 (diff)
downloadsamba-dde8701b85d88a5536a21d80a161c67c7e8634c9.tar.gz
samba-dde8701b85d88a5536a21d80a161c67c7e8634c9.tar.bz2
samba-dde8701b85d88a5536a21d80a161c67c7e8634c9.zip
Rename libnet_smbconf_reg_open_service_key() to libnet_conf_reg_open_service_key().
Michael (This used to be commit 4d86d2dd6f0a577e446ccb4b362b3cd80f819600)
-rw-r--r--source3/libnet/libnet_conf.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c
index 86b2d8b605..735fddcfd2 100644
--- a/source3/libnet/libnet_conf.c
+++ b/source3/libnet/libnet_conf.c
@@ -101,10 +101,10 @@ done:
/**
* Open a subkey of KEY_SMBCONF (i.e a service)
*/
-static WERROR libnet_smbconf_reg_open_service_key(TALLOC_CTX *ctx,
- const char *servicename,
- uint32 desired_access,
- struct registry_key **key)
+static WERROR libnet_conf_reg_open_service_key(TALLOC_CTX *ctx,
+ const char *servicename,
+ uint32 desired_access,
+ struct registry_key **key)
{
WERROR werr = WERR_OK;
char *path = NULL;
@@ -600,8 +600,8 @@ bool libnet_smbconf_share_exists(const char *servicename)
TALLOC_CTX *mem_ctx = talloc_stackframe();
struct registry_key *key = NULL;
- werr = libnet_smbconf_reg_open_service_key(mem_ctx, servicename,
- REG_KEY_READ, &key);
+ werr = libnet_conf_reg_open_service_key(mem_ctx, servicename,
+ REG_KEY_READ, &key);
if (W_ERROR_IS_OK(werr)) {
ret = true;
}
@@ -641,8 +641,8 @@ WERROR libnet_smbconf_getshare(TALLOC_CTX *mem_ctx, const char *servicename,
WERROR werr = WERR_OK;
struct registry_key *key = NULL;
- werr = libnet_smbconf_reg_open_service_key(mem_ctx, servicename,
- REG_KEY_READ, &key);
+ werr = libnet_conf_reg_open_service_key(mem_ctx, servicename,
+ REG_KEY_READ, &key);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}
@@ -692,8 +692,8 @@ WERROR libnet_smbconf_setparm(const char *service,
goto done;
}
- werr = libnet_smbconf_reg_open_service_key(mem_ctx, service,
- REG_KEY_WRITE, &key);
+ werr = libnet_conf_reg_open_service_key(mem_ctx, service, REG_KEY_WRITE,
+ &key);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}
@@ -727,8 +727,8 @@ WERROR libnet_smbconf_getparm(TALLOC_CTX *mem_ctx,
goto done;
}
- werr = libnet_smbconf_reg_open_service_key(mem_ctx, service,
- REG_KEY_READ, &key);
+ werr = libnet_conf_reg_open_service_key(mem_ctx, service, REG_KEY_READ,
+ &key);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}
@@ -769,8 +769,8 @@ WERROR libnet_smbconf_delparm(const char *service,
return WERR_NO_SUCH_SERVICE;
}
- werr = libnet_smbconf_reg_open_service_key(mem_ctx, service,
- REG_KEY_ALL, &key);
+ werr = libnet_conf_reg_open_service_key(mem_ctx, service, REG_KEY_ALL,
+ &key);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}