From: Volker Lendecke Date: Thu, 14 May 2009 09:47:25 +0000 (+0200) Subject: Fix a type-punned warning X-Git-Tag: tdb-1.1.5~560 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a5d99ae7ddc6531895a8c34a922d17515f609bc;p=thirdparty%2Fsamba.git Fix a type-punned warning --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 05de4d4c26e..1f73b2f40fc 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -477,7 +477,7 @@ static bool netbios_session_retarget(const char *name, int name_type) goto fail; } - in_addr = (struct sockaddr_in *)&retarget_addr; + in_addr = (struct sockaddr_in *)(void *)&retarget_addr; _smb_setlen(outbuf, 6); SCVAL(outbuf, 0, 0x84);