summaryrefslogtreecommitdiff
path: root/source3/utils/net_conf.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-26 14:34:21 +0100
committerMichael Adam <obnox@samba.org>2008-03-26 14:55:06 +0100
commitc2acc30bcbed9081f21dc0e73bc96b5c9edd3516 (patch)
tree6030464d894cf02dc81cff4dc174d81ed0dba7dd /source3/utils/net_conf.c
parentca2f9297c2f5ddac7f165298b1db401c140933b4 (diff)
downloadsamba-c2acc30bcbed9081f21dc0e73bc96b5c9edd3516.tar.gz
samba-c2acc30bcbed9081f21dc0e73bc96b5c9edd3516.tar.bz2
samba-c2acc30bcbed9081f21dc0e73bc96b5c9edd3516.zip
net_conf: use talloc_stackframe() instead of talloc_init().
Michael (This used to be commit ab4fd03705c61114742d8438dece69b9c37c3b38)
Diffstat (limited to 'source3/utils/net_conf.c')
-rw-r--r--source3/utils/net_conf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 1baadc4807..8a7cc260a3 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -176,7 +176,7 @@ static int net_conf_list(struct smbconf_ctx *conf_ctx,
char ***param_values;
uint32_t share_count, param_count;
- ctx = talloc_init("list");
+ ctx = talloc_stackframe();
if (argc != 0) {
net_conf_list_usage(argc, argv);
@@ -220,7 +220,7 @@ static int net_conf_import(struct smbconf_ctx *conf_ctx,
struct smbconf_ctx *txt_ctx;
WERROR werr;
- ctx = talloc_init("net_conf_import");
+ ctx = talloc_stackframe();
switch (argc) {
case 0:
@@ -305,7 +305,7 @@ static int net_conf_listshares(struct smbconf_ctx *conf_ctx,
char **share_names = NULL;
TALLOC_CTX *ctx;
- ctx = talloc_init("listshares");
+ ctx = talloc_stackframe();
if (argc != 0) {
net_conf_listshares_usage(argc, argv);
@@ -366,7 +366,7 @@ static int net_conf_showshare(struct smbconf_ctx *conf_ctx,
char **param_names;
char **param_values;
- ctx = talloc_init("showshare");
+ ctx = talloc_stackframe();
if (argc != 1) {
net_conf_showshare_usage(argc, argv);
@@ -654,7 +654,7 @@ static int net_conf_getparm(struct smbconf_ctx *conf_ctx,
char *valstr = NULL;
TALLOC_CTX *ctx;
- ctx = talloc_init("getparm");
+ ctx = talloc_stackframe();
if (argc != 2) {
net_conf_getparm_usage(argc, argv);