summaryrefslogtreecommitdiffstats
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
commit2d5e3322d6ecd00c0e936ee64483e63a3ad87c0b (patch)
treea4ec2ff7f562dbd08431eb59969c322df0ad85e3
parentd1d1baa264587911e1c97b3b35d5ed2bc56bf12b (diff)
downloadsamba-2d5e3322d6ecd00c0e936ee64483e63a3ad87c0b.tar.gz
samba-2d5e3322d6ecd00c0e936ee64483e63a3ad87c0b.tar.xz
samba-2d5e3322d6ecd00c0e936ee64483e63a3ad87c0b.zip
r23709: C++ warnings
-rw-r--r--source/rpc_server/srv_echo_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_server/srv_echo_nt.c b/source/rpc_server/srv_echo_nt.c
index 08d54ceba4f..426cd2fded8 100644
--- a/source/rpc_server/srv_echo_nt.c
+++ b/source/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;