summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-05 17:24:17 +0200
committerVolker Lendecke <vl@samba.org>2008-05-05 18:28:59 +0200
commit7245a8e3b889ad6127d2cbf62a5a7f6e465e6bbd (patch)
tree84284911ed92fed89b393cf73aa072323327c3fc /source3
parentbec1dfab27be3db888eeb451b4547f16e08e93c3 (diff)
downloadsamba-7245a8e3b889ad6127d2cbf62a5a7f6e465e6bbd.tar.gz
samba-7245a8e3b889ad6127d2cbf62a5a7f6e465e6bbd.tar.bz2
samba-7245a8e3b889ad6127d2cbf62a5a7f6e465e6bbd.zip
Fix a C++ warning
(This used to be commit e7a4027acf38bf5800d9d8ba477afb5daaf517ce)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clidgram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c
index fba009d427..1d3293c60f 100644
--- a/source3/libsmb/clidgram.c
+++ b/source3/libsmb/clidgram.c
@@ -301,8 +301,8 @@ bool receive_getdc_response(TALLOC_CTX *mem_ctx,
if (**dc_name == '\\') *dc_name += 1;
if (reply) {
- *reply = talloc_memdup(mem_ctx, &r,
- sizeof(struct nbt_ntlogon_packet));
+ *reply = (struct nbt_ntlogon_packet *)talloc_memdup(
+ mem_ctx, &r, sizeof(struct nbt_ntlogon_packet));
if (!*reply) {
return false;
}