Closed nhorman closed 4 years ago
Passing a char buffer cast to struct nlmsghdr * violates the rules of -Wcast-align on some arches, as described in : https://github.com/nhorman/dropwatch/issues/26
Fix it by declaring the buffer as a struct nlmsghdr, and casting to a less alligned type
Signed-off-by: Neil Horman nhorman@tuxdriver.com
resolves https://github.com/nhorman/dropwatch/issues/26
Tested-by: Alexander Dahl <post@lespocky.de>
Passing a char buffer cast to struct nlmsghdr * violates the rules of -Wcast-align on some arches, as described in : https://github.com/nhorman/dropwatch/issues/26
Fix it by declaring the buffer as a struct nlmsghdr, and casting to a less alligned type
Signed-off-by: Neil Horman nhorman@tuxdriver.com
resolves https://github.com/nhorman/dropwatch/issues/26