summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-12-29 22:11:09 +0100
committerMichael Adam <obnox@samba.org>2007-12-30 00:32:41 +0100
commit59128c783761c6f823971e7aa9513834a7be4b7d (patch)
treea52995f371272e23a3890f7f8b347336de943b30 /source3/utils
parent9c1449594458ad6f019f48072bba2b1c831b628b (diff)
downloadsamba-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)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_conf.c26
1 files changed, 0 insertions, 26 deletions
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)
{