On 10/14/15, 7:38 AM, "Gleb Smirnoff" <[email protected]> wrote: >What if we write it down this way (thanks C11): > >struct tcpcb { > ... > union { >#ifdef TCPPCAP > struct { > struct mbufq t_inpkts; > struct mbufq t_outpkts; > }; >#endif > uint64_t _pad[6]; > } >}; > >So, compiler cares about pointer size, not us. And more readable, IMHO.
Hi Gleb, Thanks! I agree. I'll include this in a cleanup patch that addresses the comments received after the commit. Jonathan _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
