On 14.04.2017 14:52, Ed Schouten wrote:
> Hi there,
>
> 2017-04-14 13:41 GMT+02:00 Andrey V. Elsukov :
>> - memcpy(&tent->k, &xn->addr6.sin6_addr, sizeof(struct
>> in6_addr));
>> + memcpy(&tent->k.addr6, &xn->addr6.sin6_addr,
>> + sizeof(struct in6_ad
Hi there,
2017-04-14 13:41 GMT+02:00 Andrey V. Elsukov :
> - memcpy(&tent->k, &xn->addr6.sin6_addr, sizeof(struct
> in6_addr));
> + memcpy(&tent->k.addr6, &xn->addr6.sin6_addr,
> + sizeof(struct in6_addr));
In this case the code could be abbreviated
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:
head/sys/netpfil/ipfw/ip_fw_table_alg