summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/srv_echo.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-01-16 17:48:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:11 -0500
commite2e7ad91a9aa3b8a1270e1148550fee9e3fedc79 (patch)
tree0c77df2e47a690b2e555c379fd387934128f68f7 /source3/librpc/gen_ndr/srv_echo.c
parentdef7b0bca194502832192270322c6232622ee48e (diff)
downloadsamba-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_echo.c')
-rw-r--r--source3/librpc/gen_ndr/srv_echo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/librpc/gen_ndr/srv_echo.c b/source3/librpc/gen_ndr/srv_echo.c
index e72d1eafe2..eb4cf894b8 100644
--- a/source3/librpc/gen_ndr/srv_echo.c
+++ b/source3/librpc/gen_ndr/srv_echo.c
@@ -37,7 +37,7 @@ static BOOL api_echo_AddOne(pipes_struct *p)
NDR_PRINT_IN_DEBUG(echo_AddOne, &r);
ZERO_STRUCT(r.out);
- r.out.out_data = talloc_zero_size(mem_ctx, sizeof(*r.out.out_data));
+ r.out.out_data = talloc_zero(mem_ctx, uint32_t);
if (r.out.out_data == NULL) {
talloc_free(mem_ctx);
return False;
@@ -108,7 +108,7 @@ static BOOL api_echo_EchoData(pipes_struct *p)
NDR_PRINT_IN_DEBUG(echo_EchoData, &r);
ZERO_STRUCT(r.out);
- r.out.out_data = talloc_zero_size(mem_ctx, sizeof(*r.out.out_data) * r.in.len);
+ r.out.out_data = talloc_zero_array(mem_ctx, uint8_t, r.in.len);
if (r.out.out_data == NULL) {
talloc_free(mem_ctx);
return False;
@@ -243,7 +243,7 @@ static BOOL api_echo_SourceData(pipes_struct *p)
NDR_PRINT_IN_DEBUG(echo_SourceData, &r);
ZERO_STRUCT(r.out);
- r.out.data = talloc_zero_size(mem_ctx, sizeof(*r.out.data) * r.in.len);
+ r.out.data = talloc_zero_array(mem_ctx, uint8_t, r.in.len);
if (r.out.data == NULL) {
talloc_free(mem_ctx);
return False;
@@ -314,7 +314,7 @@ static BOOL api_echo_TestCall(pipes_struct *p)
NDR_PRINT_IN_DEBUG(echo_TestCall, &r);
ZERO_STRUCT(r.out);
- r.out.s2 = talloc_zero_size(mem_ctx, sizeof(*r.out.s2));
+ r.out.s2 = talloc_zero(mem_ctx, const char *);
if (r.out.s2 == NULL) {
talloc_free(mem_ctx);
return False;
@@ -385,7 +385,7 @@ static BOOL api_echo_TestCall2(pipes_struct *p)
NDR_PRINT_IN_DEBUG(echo_TestCall2, &r);
ZERO_STRUCT(r.out);
- r.out.info = talloc_zero_size(mem_ctx, sizeof(*r.out.info));
+ r.out.info = talloc_zero(mem_ctx, union echo_Info);
if (r.out.info == NULL) {
talloc_free(mem_ctx);
return False;