diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-06 02:32:43 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2005-01-06 02:32:43 +0000 |
commit | 258498b246ba7ca7d031e82b677f390677f7c37f (patch) | |
tree | 2f3f7f78c508481d598560bec97220d7b65e785d /source/client | |
parent | e9b4b1ff1bd6039e1c75eb6c5c333be034e3c995 (diff) | |
download | samba-258498b246ba7ca7d031e82b677f390677f7c37f.tar.gz samba-258498b246ba7ca7d031e82b677f390677f7c37f.tar.xz samba-258498b246ba7ca7d031e82b677f390677f7c37f.zip |
r4547: - added talloc_new(ctx) macro that is a neater form of the common talloc(ctx, 0) call.
- cleaned up some talloc usage in various files
I'd like to get to the point that we have no calls to talloc(), at
which point we will rename talloc_p() to talloc(), to encourage
everyone to use the typesafe functions.
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/client/client.c b/source/client/client.c index 62b2042a029..b2255fc7b85 100644 --- a/source/client/client.c +++ b/source/client/client.c @@ -1899,7 +1899,7 @@ lookup a name or sid static int cmd_lookup(const char **cmd_ptr) { fstring buf; - TALLOC_CTX *mem_ctx = talloc(NULL, 0); + TALLOC_CTX *mem_ctx = talloc_new(NULL); NTSTATUS status; struct dom_sid *sid; @@ -1943,7 +1943,7 @@ show privileges for a user static int cmd_privileges(const char **cmd_ptr) { fstring buf; - TALLOC_CTX *mem_ctx = talloc(NULL, 0); + TALLOC_CTX *mem_ctx = talloc_new(NULL); NTSTATUS status; struct dom_sid *sid; struct lsa_RightSet rights; @@ -1990,7 +1990,7 @@ add privileges for a user static int cmd_addprivileges(const char **cmd_ptr) { fstring buf; - TALLOC_CTX *mem_ctx = talloc(NULL, 0); + TALLOC_CTX *mem_ctx = talloc_new(NULL); NTSTATUS status; struct dom_sid *sid; struct lsa_RightSet rights; @@ -2040,7 +2040,7 @@ delete privileges for a user static int cmd_delprivileges(const char **cmd_ptr) { fstring buf; - TALLOC_CTX *mem_ctx = talloc(NULL, 0); + TALLOC_CTX *mem_ctx = talloc_new(NULL); NTSTATUS status; struct dom_sid *sid; struct lsa_RightSet rights; |