summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-12-22 16:02:36 +0000
committerJeremy Allison <jra@samba.org>2002-12-22 16:02:36 +0000
commitb95b82b798704d75403c4cf06ce6a10a6161b501 (patch)
tree500813446914d42c61bbb36e4f1cd013eed4932f /source3
parent7f23546730e49569d41a5edd0c47bb559c4f812d (diff)
downloadsamba-b95b82b798704d75403c4cf06ce6a10a6161b501.tar.gz
samba-b95b82b798704d75403c4cf06ce6a10a6161b501.tar.xz
samba-b95b82b798704d75403c4cf06ce6a10a6161b501.zip
talloc_init_named -> talloc_init.
Jeremy. (This used to be commit 20a44d4cf11d91e7a09176bfe673ad0cb230dffe)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/talloctort.c2
-rw-r--r--source3/modules/vfs_netatalk.c10
-rw-r--r--source3/modules/vfs_recycle.c4
-rw-r--r--source3/sam/account.c2
-rw-r--r--source3/sam/group.c2
-rw-r--r--source3/sam/gums_api.c2
-rw-r--r--source3/sam/gums_helper.c4
-rw-r--r--source3/sam/interface.c2
-rwxr-xr-xsource3/sam/sam_ads.c8
9 files changed, 18 insertions, 18 deletions
diff --git a/source3/lib/talloctort.c b/source3/lib/talloctort.c
index 3a64803776..ad5de38581 100644
--- a/source3/lib/talloctort.c
+++ b/source3/lib/talloctort.c
@@ -29,7 +29,7 @@ int main(void)
TALLOC_CTX *ctx[NCTX];
for (i = 0; i < NCTX; i++) {
- ctx[i] = talloc_init_named("torture(%d)", i);
+ ctx[i] = talloc_init("torture(%d)", i);
}
for (i = 0; i < NCTX; i++) {
diff --git a/source3/modules/vfs_netatalk.c b/source3/modules/vfs_netatalk.c
index 353be36e6f..c869922a4c 100644
--- a/source3/modules/vfs_netatalk.c
+++ b/source3/modules/vfs_netatalk.c
@@ -223,7 +223,7 @@ static int atalk_rmdir(struct connection_struct *conn, const char *path)
strstr(path, APPLEDOUBLE) ? (add = False) : (add = True);
- if (!(ctx = talloc_init_named("remove_directory")))
+ if (!(ctx = talloc_init("remove_directory")))
goto exit_rmdir;
if (!(dpath = talloc_asprintf(ctx, "%s/%s%s",
@@ -252,7 +252,7 @@ static int atalk_rename(struct connection_struct *conn, const char *old, const c
if (!conn || !old) return ret;
- if (!(ctx = talloc_init_named("rename_file")))
+ if (!(ctx = talloc_init("rename_file")))
return ret;
if (atalk_build_paths(ctx, conn->origpath, old, &adbl_path, &orig_path,
@@ -308,7 +308,7 @@ static int atalk_unlink(struct connection_struct *conn, const char *path)
}
}
- if (!(ctx = talloc_init_named("unlink_file")))
+ if (!(ctx = talloc_init("unlink_file")))
return ret;
if (atalk_build_paths(ctx, conn->origpath, path, &adbl_path, &orig_path,
@@ -340,7 +340,7 @@ static int atalk_chmod(struct connection_struct *conn, const char *path, mode_t
if (!conn || !path) return ret;
- if (!(ctx = talloc_init_named("chmod_file")))
+ if (!(ctx = talloc_init("chmod_file")))
return ret;
if (atalk_build_paths(ctx, conn->origpath, path, &adbl_path, &orig_path,
@@ -372,7 +372,7 @@ static int atalk_chown(struct connection_struct *conn, const char *path, uid_t u
if (!conn || !path) return ret;
- if (!(ctx = talloc_init_named("chown_file")))
+ if (!(ctx = talloc_init("chown_file")))
return ret;
if (atalk_build_paths(ctx, conn->origpath, path, &adbl_path, &orig_path,
diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c
index 83fc41cfbd..dcd83b7acd 100644
--- a/source3/modules/vfs_recycle.c
+++ b/source3/modules/vfs_recycle.c
@@ -104,7 +104,7 @@ vfs_op_tuple *vfs_init(int *vfs_version, struct vfs_ops *def_vfs_ops,
}
recycle_bin_private_handle = vfs_handle;
- if (!(mem_ctx = talloc_init_named("recycle bin data"))) {
+ if (!(mem_ctx = talloc_init("recycle bin data"))) {
DEBUG(0, ("Failed to allocate memory in VFS module recycle_bin\n"));
return NULL;
}
@@ -171,7 +171,7 @@ static int recycle_connect(struct connection_struct *conn, const char *service,
return -1;
}
- if (!(ctx = talloc_init_named("recycle bin connection"))) {
+ if (!(ctx = talloc_init("recycle bin connection"))) {
DEBUG(0, ("Failed to allocate memory in VFS module recycle_bin\n"));
return -1;
}
diff --git a/source3/sam/account.c b/source3/sam/account.c
index 1b43db57d9..b8336146cd 100644
--- a/source3/sam/account.c
+++ b/source3/sam/account.c
@@ -103,7 +103,7 @@ NTSTATUS sam_init_account(SAM_ACCOUNT_HANDLE **account)
TALLOC_CTX *mem_ctx;
NTSTATUS nt_status;
- mem_ctx = talloc_init_named("sam internal SAM_ACCOUNT_HANDLE allocation");
+ mem_ctx = talloc_init("sam internal SAM_ACCOUNT_HANDLE allocation");
if (!mem_ctx) {
DEBUG(0,("sam_init_account: error while doing talloc_init()\n"));
diff --git a/source3/sam/group.c b/source3/sam/group.c
index 7e4bcc1425..101e3dd7ce 100644
--- a/source3/sam/group.c
+++ b/source3/sam/group.c
@@ -83,7 +83,7 @@ NTSTATUS sam_init_group(SAM_GROUP_HANDLE **group)
TALLOC_CTX *mem_ctx;
NTSTATUS nt_status;
- mem_ctx = talloc_init_named("sam internal SAM_GROUP_HANDLE allocation");
+ mem_ctx = talloc_init("sam internal SAM_GROUP_HANDLE allocation");
if (!mem_ctx) {
DEBUG(0,("sam_init_group: error while doing talloc_init()\n"));
diff --git a/source3/sam/gums_api.c b/source3/sam/gums_api.c
index 1d67467b2b..0061988eea 100644
--- a/source3/sam/gums_api.c
+++ b/source3/sam/gums_api.c
@@ -795,7 +795,7 @@ NTSTATUS gums_create_commit_set(GUMS_COMMIT_SET **com_set, TALLOC_CTX *ctx, DOM_
TALLOC_CTX *mem_ctx;
GUMS_COMMIT_SET *set;
- mem_ctx = talloc_init_named("commit_set");
+ mem_ctx = talloc_init("commit_set");
if (mem_ctx == NULL)
return NT_STATUS_NO_MEMORY;
set = (GUMS_COMMIT_SET *)talloc(mem_ctx, sizeof(GUMS_COMMIT_SET));
diff --git a/source3/sam/gums_helper.c b/source3/sam/gums_helper.c
index d581d6574e..8526a2f1cc 100644
--- a/source3/sam/gums_helper.c
+++ b/source3/sam/gums_helper.c
@@ -372,7 +372,7 @@ NTSTATUS gums_init_builtin_groups(void)
g_obj.type = GUMS_OBJ_GROUP;
g_obj.version = 1;
g_obj.seq_num = 0;
- g_obj.mem_ctx = talloc_init_named("gums_init_backend_acct");
+ g_obj.mem_ctx = talloc_init("gums_init_backend_acct");
if (g_obj.mem_ctx == NULL) {
DEBUG(0, ("gums_init_backend: Out of Memory!\n"));
return NT_STATUS_NO_MEMORY;
@@ -591,7 +591,7 @@ NTSTATUS gums_init_builtin_groups(void)
g_priv.type = GUMS_OBJ_GROUP;
g_priv.version = 1;
g_priv.seq_num = 0;
- g_priv.mem_ctx = talloc_init_named("gums_init_backend_priv");
+ g_priv.mem_ctx = talloc_init("gums_init_backend_priv");
if (g_priv.mem_ctx == NULL) {
DEBUG(0, ("gums_init_backend: Out of Memory!\n"));
return NT_STATUS_NO_MEMORY;
diff --git a/source3/sam/interface.c b/source3/sam/interface.c
index d08df42122..51ae561999 100644
--- a/source3/sam/interface.c
+++ b/source3/sam/interface.c
@@ -384,7 +384,7 @@ NTSTATUS make_sam_context(SAM_CONTEXT **context)
{
TALLOC_CTX *mem_ctx;
- mem_ctx = talloc_init_named("sam_context internal allocation context");
+ mem_ctx = talloc_init("sam_context internal allocation context");
if (!mem_ctx) {
DEBUG(0, ("make_sam_context: talloc init failed!\n"));
diff --git a/source3/sam/sam_ads.c b/source3/sam/sam_ads.c
index d2bfab53b9..13e0369004 100755
--- a/source3/sam/sam_ads.c
+++ b/source3/sam/sam_ads.c
@@ -584,8 +584,8 @@ static NTSTATUS sam_ads_get_sec_desc(const SAM_METHODS *sam_method, const NT_USE
return ads_ntstatus(ads_status);
}
- if (!(mem_ctx = talloc_init_named("sec_desc parse in sam_ads"))) {
- DEBUG(1, ("talloc_init_named() failed for sec_desc parse context in sam_ads"));
+ if (!(mem_ctx = talloc_init("sec_desc parse in sam_ads"))) {
+ DEBUG(1, ("talloc_init() failed for sec_desc parse context in sam_ads"));
ads_msgfree(ads_struct, sec_desc_res);
return NT_STATUS_NO_MEMORY;
}
@@ -1323,8 +1323,8 @@ NTSTATUS sam_init_ads(SAM_METHODS *sam_method, const char *module_params)
return NT_STATUS_NO_MEMORY;
}
- if (!(sam_ads_state->mem_ctx = talloc_init_named("sam_ads_method"))) {
- DEBUG(0, ("talloc_init_named() failed for sam_ads_state->mem_ctx\n"));
+ if (!(sam_ads_state->mem_ctx = talloc_init("sam_ads_method"))) {
+ DEBUG(0, ("talloc_init() failed for sam_ads_state->mem_ctx\n"));
return NT_STATUS_NO_MEMORY;
}