1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-18 19:33:16 +03:00

talloc_init_named -> talloc_init.

Jeremy.
This commit is contained in:
Jeremy Allison
-
parent 09a218a9f6
commit 35d00bacdc
3 changed files with 7 additions and 7 deletions

View File

@@ -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++) {

View File

@@ -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,

View File

@@ -119,7 +119,7 @@ static int recycle_connect(struct connection_struct *conn, const char *service,
DEBUG(10, ("Called for service %s (%d) as user %s\n", service, SNUM(conn), user));
if (!(ctx = talloc_init_named("recycle bin"))) {
if (!(ctx = talloc_init("recycle bin"))) {
DEBUG(0, ("Failed to allocate memory in VFS module recycle_bin\n"));
return 0;
}