diff options
author | Michael Adam <obnox@samba.org> | 2007-12-29 02:12:33 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2007-12-29 02:12:33 +0100 |
commit | eb356fbafc4b6e0d94b1ba75c6c466262e3221e5 (patch) | |
tree | 723e1fb64733f81a01e7e524bf744ecab9a90d7d /source3/utils/net_conf.c | |
parent | 4b75bc63bb82f2322acdb013f1cfa9eb36419856 (diff) | |
download | samba-eb356fbafc4b6e0d94b1ba75c6c466262e3221e5.tar.gz samba-eb356fbafc4b6e0d94b1ba75c6c466262e3221e5.tar.bz2 samba-eb356fbafc4b6e0d94b1ba75c6c466262e3221e5.zip |
Hide the registry backend from libnet_smbconf_getparm().
Return a formatted string of the value instead.
Michael
(This used to be commit 7d0ec5bae155cda6620db04dcb7bd43db59241aa)
Diffstat (limited to 'source3/utils/net_conf.c')
-rw-r--r-- | source3/utils/net_conf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index fb6cb58840..e607d099dc 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -769,7 +769,7 @@ static int net_conf_getparm(int argc, const char **argv) WERROR werr = WERR_OK; char *service = NULL; char *param = NULL; - struct registry_value *value = NULL; + char *valstr = NULL; TALLOC_CTX *ctx; ctx = talloc_init("getparm"); @@ -781,7 +781,7 @@ static int net_conf_getparm(int argc, const char **argv) service = strdup_lower(argv[0]); param = strdup_lower(argv[1]); - werr = libnet_smbconf_getparm(ctx, service, param, &value); + werr = libnet_smbconf_getparm(ctx, service, param, &valstr); if (W_ERROR_EQUAL(werr, WERR_NO_SUCH_SERVICE)) { d_fprintf(stderr, @@ -799,7 +799,7 @@ static int net_conf_getparm(int argc, const char **argv) goto done; } - d_printf("%s\n", libnet_smbconf_format_registry_value(ctx, value)); + d_printf("%s\n", valstr); ret = 0; done: |