From e7a4027acf38bf5800d9d8ba477afb5daaf517ce Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 5 May 2008 17:24:17 +0200 Subject: [PATCH] Fix a C++ warning --- source/libsmb/clidgram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.11.4.GIT