diff options
author | Michael Adam <obnox@samba.org> | 2007-12-29 22:11:09 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2007-12-30 00:32:41 +0100 |
commit | 59128c783761c6f823971e7aa9513834a7be4b7d (patch) | |
tree | a52995f371272e23a3890f7f8b347336de943b30 | |
parent | 9c1449594458ad6f019f48072bba2b1c831b628b (diff) | |
download | samba-59128c783761c6f823971e7aa9513834a7be4b7d.tar.gz samba-59128c783761c6f823971e7aa9513834a7be4b7d.tar.bz2 samba-59128c783761c6f823971e7aa9513834a7be4b7d.zip |
Remove list_values() from net_conf.c - it is not needed any more.
Also make libnet.c:libnet_smbconf_format_registry_value() static.
(There are nor more external callers.)
Michael
(This used to be commit ac7baa17e89d2363b5b3db85de9c842b596dea25)
-rw-r--r-- | source3/libnet/libnet_conf.c | 4 | ||||
-rw-r--r-- | source3/utils/net_conf.c | 26 |
2 files changed, 2 insertions, 28 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c index 642b6880ec..3c04c1333f 100644 --- a/source3/libnet/libnet_conf.c +++ b/source3/libnet/libnet_conf.c @@ -257,8 +257,8 @@ done: * which are ar stored as REG_SZ values, so the incomplete * handling should be ok. */ -char *libnet_smbconf_format_registry_value(TALLOC_CTX *mem_ctx, - struct registry_value *value) +static char *libnet_smbconf_format_registry_value(TALLOC_CTX *mem_ctx, + struct registry_value *value) { char *result = NULL; diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index ed9ed389e4..29bbc83ec3 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -110,32 +110,6 @@ static int net_conf_delparm_usage(int argc, const char **argv) * Helper functions */ -static WERROR list_values(TALLOC_CTX *ctx, struct registry_key *key) -{ - WERROR werr = WERR_OK; - uint32 idx = 0; - struct registry_value *valvalue = NULL; - char *valname = NULL; - - for (idx = 0; - W_ERROR_IS_OK(werr = reg_enumvalue(ctx, key, idx, &valname, - &valvalue)); - idx++) - { - 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", - dos_errstr(werr)); - goto done; - } - werr = WERR_OK; - -done: - return werr; -} - static char *parm_valstr(TALLOC_CTX *ctx, struct parm_struct *parm, struct share_params *share) { |