summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-12-29 01:17:39 +0100
committerMichael Adam <obnox@samba.org>2007-12-29 01:17:39 +0100
commit4b75bc63bb82f2322acdb013f1cfa9eb36419856 (patch)
treecb36f8a30b44f333c6d81ec17b877018d7ea035b
parentdfa8d9356cea0dd6a1b013a72c3d68c026deb511 (diff)
downloadsamba-4b75bc63bb82f2322acdb013f1cfa9eb36419856.tar.gz
samba-4b75bc63bb82f2322acdb013f1cfa9eb36419856.tar.bz2
samba-4b75bc63bb82f2322acdb013f1cfa9eb36419856.zip
Rename format_value() to libnet_smbconf_format_registry_value().
Michael (This used to be commit 95d5dd9bb0546181cd499e6deabff562166412e3)
-rw-r--r--source3/libnet/libnet_conf.c4
-rw-r--r--source3/utils/net_conf.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c
index 5389d856b3..dfea724497 100644
--- a/source3/libnet/libnet_conf.c
+++ b/source3/libnet/libnet_conf.c
@@ -222,7 +222,8 @@ done:
return werr;
}
-char *format_value(TALLOC_CTX *mem_ctx, struct registry_value *value)
+char *libnet_smbconf_format_registry_value(TALLOC_CTX *mem_ctx,
+ struct registry_value *value)
{
char *result = NULL;
@@ -362,6 +363,7 @@ WERROR libnet_smbconf_getparm(TALLOC_CTX *mem_ctx,
{
WERROR werr;
struct registry_key *key = NULL;
+ struct registry_value *value = NULL;
if (!libnet_smbconf_key_exists(service)) {
werr = WERR_NO_SUCH_SERVICE;
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 98cc1ee198..fb6cb58840 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -122,7 +122,8 @@ static WERROR list_values(TALLOC_CTX *ctx, struct registry_key *key)
&valvalue));
idx++)
{
- d_printf("\t%s = %s\n", valname, format_value(ctx, valvalue));
+ d_printf("\t%s = %s\n", valname,
+ libnet_smbconf_format_registry_value(ctx, valvalue));
}
if (!W_ERROR_EQUAL(WERR_NO_MORE_ITEMS, werr)) {
d_fprintf(stderr, "Error enumerating values: %s\n",
@@ -798,7 +799,7 @@ static int net_conf_getparm(int argc, const char **argv)
goto done;
}
- d_printf("%s\n", format_value(ctx, value));
+ d_printf("%s\n", libnet_smbconf_format_registry_value(ctx, value));
ret = 0;
done: