Re: svn commit: r316825 - head/sys/netpfil/ipfw

2017-04-14 Thread Andrey V. Elsukov
On 14.04.2017 14:52, Ed Schouten wrote: > Hi there, > > 2017-04-14 13:41 GMT+02:00 Andrey V. Elsukov : >> - memcpy(>k, >addr6.sin6_addr, sizeof(struct >> in6_addr)); >> + memcpy(>k.addr6, >addr6.sin6_addr, >> + sizeof(struct

Re: svn commit: r316825 - head/sys/netpfil/ipfw

2017-04-14 Thread Ed Schouten
Hi there, 2017-04-14 13:41 GMT+02:00 Andrey V. Elsukov : > - memcpy(>k, >addr6.sin6_addr, sizeof(struct > in6_addr)); > + memcpy(>k.addr6, >addr6.sin6_addr, > + sizeof(struct in6_addr)); In this case the code could be abbreviated

svn commit: r316825 - head/sys/netpfil/ipfw

2017-04-14 Thread Andrey V. Elsukov
Author: ae Date: Fri Apr 14 11:41:09 2017 New Revision: 316825 URL: https://svnweb.freebsd.org/changeset/base/316825 Log: Use address of specific union member instead of whole union address to fix PVS-Studio warnings. MFC after:1 week Modified: