diff options
author | Michael Adam <obnox@samba.org> | 2007-12-25 03:29:05 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2007-12-25 03:29:05 +0100 |
commit | f3b0469b4a623c3ef17e2453bf40eb52778b5c42 (patch) | |
tree | d3005611d79c662cf2f39504f324f1bf598c1736 /source3/utils/net_conf.c | |
parent | a66a5fd94bfb8a41bdb46aedf7eba28b55fbdaaf (diff) | |
download | samba-f3b0469b4a623c3ef17e2453bf40eb52778b5c42.tar.gz samba-f3b0469b4a623c3ef17e2453bf40eb52778b5c42.tar.bz2 samba-f3b0469b4a623c3ef17e2453bf40eb52778b5c42.zip |
Remove talloc context parameter from libnet_smbconf_setparm().
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_setparm.
Michael
(This used to be commit efaffefc438f8375a083b194ac7a09e563000d3c)
Diffstat (limited to 'source3/utils/net_conf.c')
-rw-r--r-- | source3/utils/net_conf.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index 9a6f5400e1..eb6398f5b9 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -769,9 +769,6 @@ static int net_conf_setparm(int argc, const char **argv) char *service = NULL; char *param = NULL; const char *value_str = NULL; - TALLOC_CTX *ctx; - - ctx = talloc_init("setparm"); if (argc != 3) { net_conf_setparm_usage(argc, argv); @@ -781,7 +778,7 @@ static int net_conf_setparm(int argc, const char **argv) param = strdup_lower(argv[1]); value_str = argv[2]; - werr = libnet_smbconf_setparm(ctx, service, param, value_str); + werr = libnet_smbconf_setparm(service, param, value_str); if (!W_ERROR_IS_OK(werr)) { d_fprintf(stderr, "Error setting value '%s': %s\n", @@ -793,7 +790,6 @@ static int net_conf_setparm(int argc, const char **argv) done: SAFE_FREE(service); - TALLOC_FREE(ctx); return ret; } |