summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-07-04 22:28:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:47 -0500
commit824b3f82acd09315a68cc7f66a6bbab4f50f6eb7 (patch)
tree3632bd9fc8055d39c0cd932080654292712b1328 /source3
parentb824a665bb4dce018f8162674ad03ec781a85735 (diff)
downloadsamba-824b3f82acd09315a68cc7f66a6bbab4f50f6eb7.tar.gz
samba-824b3f82acd09315a68cc7f66a6bbab4f50f6eb7.tar.bz2
samba-824b3f82acd09315a68cc7f66a6bbab4f50f6eb7.zip
r23709: C++ warnings
(This used to be commit 2d5e3322d6ecd00c0e936ee64483e63a3ad87c0b)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_echo_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_echo_nt.c b/source3/rpc_server/srv_echo_nt.c
index 08d54ceba4..426cd2fded 100644
--- a/source3/rpc_server/srv_echo_nt.c
+++ b/source3/rpc_server/srv_echo_nt.c
@@ -50,7 +50,7 @@ void _echo_EchoData(pipes_struct *p, struct echo_EchoData *r)
return;
}
- r->out.out_data = TALLOC(p->mem_ctx, r->in.len);
+ r->out.out_data = TALLOC_ARRAY(p->mem_ctx, uint8, r->in.len);
memcpy( r->out.out_data, r->in.in_data, r->in.len );
return;
}
@@ -78,7 +78,7 @@ void _echo_SourceData(pipes_struct *p, struct echo_SourceData *r)
return;
}
- r->out.data = TALLOC(p->mem_ctx, r->in.len );
+ r->out.data = TALLOC_ARRAY(p->mem_ctx, uint8, r->in.len );
for (i = 0; i < r->in.len; i++ ) {
r->out.data[i] = i & 0xff;