]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNWFilterSnoopLeaseFileLoad: Don't typecast 'ipl.timeout'
authorPeter Krempa <pkrempa@redhat.com>
Fri, 6 Jan 2023 15:22:42 +0000 (16:22 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 9 Jan 2023 12:54:56 +0000 (13:54 +0100)
commitbb80344fd00263b88890712152084502ac516cc8
treedd2c2a4ab5e7c0b433844f81f10990709dd5942b
parent8858a3cc35a83013112f6fd9503c7d5077a1c530
virNWFilterSnoopLeaseFileLoad: Don't typecast 'ipl.timeout'

Use a temporary variable to avoid memory alignment issues on ARM:

../src/nwfilter/nwfilter_dhcpsnoop.c: In function â€˜virNWFilterSnoopLeaseFileLoad’:
../src/nwfilter/nwfilter_dhcpsnoop.c:1745:20: error: cast increases required alignment of target type [-Werror=cast-align]
 1745 |                    (unsigned long long *) &ipl.timeout,
      |

Fixes: 0d278aa089bf3a00bf2d6e56d2f01ea4677190a7
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/nwfilter/nwfilter_dhcpsnoop.c