diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-01-16 17:48:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:11 -0500 |
commit | e2e7ad91a9aa3b8a1270e1148550fee9e3fedc79 (patch) | |
tree | 0c77df2e47a690b2e555c379fd387934128f68f7 /source3/librpc/gen_ndr/srv_unixinfo.c | |
parent | def7b0bca194502832192270322c6232622ee48e (diff) | |
download | samba-e2e7ad91a9aa3b8a1270e1148550fee9e3fedc79.tar.gz samba-e2e7ad91a9aa3b8a1270e1148550fee9e3fedc79.tar.bz2 samba-e2e7ad91a9aa3b8a1270e1148550fee9e3fedc79.zip |
r20837: Use real type name, to fix compilation with -WC++-compat
(This used to be commit 840485686d2b3765bd01fbe442f712803d1f4c0f)
Diffstat (limited to 'source3/librpc/gen_ndr/srv_unixinfo.c')
-rw-r--r-- | source3/librpc/gen_ndr/srv_unixinfo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/librpc/gen_ndr/srv_unixinfo.c b/source3/librpc/gen_ndr/srv_unixinfo.c index a52ccb13fa..8cb6e567ac 100644 --- a/source3/librpc/gen_ndr/srv_unixinfo.c +++ b/source3/librpc/gen_ndr/srv_unixinfo.c @@ -37,7 +37,7 @@ static BOOL api_unixinfo_SidToUid(pipes_struct *p) NDR_PRINT_IN_DEBUG(unixinfo_SidToUid, &r); ZERO_STRUCT(r.out); - r.out.uid = talloc_zero_size(mem_ctx, sizeof(*r.out.uid)); + r.out.uid = talloc_zero(mem_ctx, uint64_t); if (r.out.uid == NULL) { talloc_free(mem_ctx); return False; @@ -108,7 +108,7 @@ static BOOL api_unixinfo_UidToSid(pipes_struct *p) NDR_PRINT_IN_DEBUG(unixinfo_UidToSid, &r); ZERO_STRUCT(r.out); - r.out.sid = talloc_zero_size(mem_ctx, sizeof(*r.out.sid)); + r.out.sid = talloc_zero(mem_ctx, struct dom_sid); if (r.out.sid == NULL) { talloc_free(mem_ctx); return False; @@ -179,7 +179,7 @@ static BOOL api_unixinfo_SidToGid(pipes_struct *p) NDR_PRINT_IN_DEBUG(unixinfo_SidToGid, &r); ZERO_STRUCT(r.out); - r.out.gid = talloc_zero_size(mem_ctx, sizeof(*r.out.gid)); + r.out.gid = talloc_zero(mem_ctx, uint64_t); if (r.out.gid == NULL) { talloc_free(mem_ctx); return False; @@ -250,7 +250,7 @@ static BOOL api_unixinfo_GidToSid(pipes_struct *p) NDR_PRINT_IN_DEBUG(unixinfo_GidToSid, &r); ZERO_STRUCT(r.out); - r.out.sid = talloc_zero_size(mem_ctx, sizeof(*r.out.sid)); + r.out.sid = talloc_zero(mem_ctx, struct dom_sid); if (r.out.sid == NULL) { talloc_free(mem_ctx); return False; @@ -322,7 +322,7 @@ static BOOL api_unixinfo_GetPWUid(pipes_struct *p) ZERO_STRUCT(r.out); r.out.count = r.in.count; - r.out.infos = talloc_zero_size(mem_ctx, sizeof(*r.out.infos) * *r.in.count); + r.out.infos = talloc_zero_array(mem_ctx, struct unixinfo_GetPWUidInfo, *r.in.count); if (r.out.infos == NULL) { talloc_free(mem_ctx); return False; |