diff options
author | Tom Gundersen <teg@jklm.no> | 2015-11-16 15:50:13 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-11-16 15:50:13 +0100 |
commit | f5ed8d4a51b7f168eba9114a7cf4c2a3132cafff (patch) | |
tree | aaf3b2b5a03de9ca3801a912ae42b7f61d95ff6e /src/network/networkd-ipv4ll.c | |
parent | 920a7262211254a6f728af5ed4f6cd7f9a83e9a6 (diff) | |
parent | dbe81cbd2a93088236a2e4e41eeb33378940f7b9 (diff) |
Merge pull request #1916 from zonque/align
siphash: alignment
Diffstat (limited to 'src/network/networkd-ipv4ll.c')
-rw-r--r-- | src/network/networkd-ipv4ll.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/networkd-ipv4ll.c b/src/network/networkd-ipv4ll.c index ed0d861e7a..506654b5d7 100644 --- a/src/network/networkd-ipv4ll.c +++ b/src/network/networkd-ipv4ll.c @@ -201,7 +201,7 @@ static void ipv4ll_handler(sd_ipv4ll *ll, int event, void *userdata){ } int ipv4ll_configure(Link *link) { - uint8_t seed[8]; + uint64_t seed; int r; assert(link); @@ -215,11 +215,11 @@ int ipv4ll_configure(Link *link) { } if (link->udev_device) { - r = net_get_unique_predictable_data(link->udev_device, seed); + r = net_get_unique_predictable_data(link->udev_device, &seed); if (r >= 0) { assert_cc(sizeof(unsigned) <= 8); - r = sd_ipv4ll_set_address_seed(link->ipv4ll, *(unsigned *)seed); + r = sd_ipv4ll_set_address_seed(link->ipv4ll, (unsigned)seed); if (r < 0) return r; } |