commit | 9ec0e899e13f01e44e8111179910e5d57ced2c4a | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Wed Jun 09 14:52:41 2010 +0000 |
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | Fri Jul 23 12:30:48 2010 -0700 |
tree | f003a2af52744411b75ef4ff8371c01ce5013cfc | |
parent | 0156412215abec067ff08d760f454adbccb9a13f [diff] |
dnet: fix strict aliasing warnings Recent gcc doesn't like it when you cast char pointers to uint16_t pointers and then dereference it. So use memcpy() instead and let gcc take care of optimizing things away (when appropriate). This should also fix alignment issues on arches where gcc packs the char pointer tighter than 16bits. Signed-off-by: Mike Frysinger <vapier@gentoo.org>