diff options
| author | Thomas Haller <thaller@redhat.com> | 2019-05-10 08:03:54 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2019-05-13 09:25:05 +0200 |
| commit | 3712e7a89fd2efc9b0d2c09cda766d2357a63ba9 (patch) | |
| tree | 854ec963e25bf83f717a7d8e12264c01cdb4b7d0 /src/nm-core-utils.c | |
| parent | 58df3f37ea031b77592e6879c7ccea61cbdfd5a0 (diff) | |
| download | NetworkManager-3712e7a89fd2efc9b0d2c09cda766d2357a63ba9.tar.gz | |
shared: use union instead of _nm_alignas() for static hash-seed
We want the the hash-seed array is alined so it can be used both as
guint, guint32, and guint64 directly. Don't use _nm_alignas() but
instead just add the fields to the union so we get proper alignment.
While at at, also let the seed argument to c_siphash_init() be aligned
to 64 integers. c_siphash_init() does not require that, but it tries to
read the seed as (unaligned) LE 64 bit integers. So, it doesn't hurt.
Diffstat (limited to 'src/nm-core-utils.c')
0 files changed, 0 insertions, 0 deletions
