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
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
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: