From: Volker Lendecke Date: Mon, 5 May 2008 15:24:17 +0000 (+0200) Subject: Fix a C++ warning X-Git-Tag: samba-3.3.0pre1~1381 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7a4027acf38bf5800d9d8ba477afb5daaf517ce;p=thirdparty%2Fsamba.git Fix a C++ warning --- diff --git a/source/libsmb/clidgram.c b/source/libsmb/clidgram.c index fba009d4278..1d3293c60f0 100644 --- a/source/libsmb/clidgram.c +++ b/source/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; }