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

Andrey V. Elsukov bu7cher at yandex.ru
Fri Apr 14 11:56:21 UTC 2017


On 14.04.2017 14:52, Ed Schouten wrote:
> Hi there,
> 
> 2017-04-14 13:41 GMT+02:00 Andrey V. Elsukov <ae at freebsd.org>:
>> -               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 by simply using assignment, right?
> 
> tent->k.addr6 = xn->addr6.sin6_addr;

Yes.

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 553 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20170414/a0a929b7/attachment-0001.sig>


More information about the svn-src-head mailing list