summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2368720)
211cd627 corrected the constness of ip_csum and ip_fast_csum. But the
latter has two implementations, and we missed the C fallback. This
resulted in the following compile error on non-i386 platforms:
netlink.c:606:2: error: passing argument 1 of `ip_fast_csum'
discards `const' qualifier from pointer target type [-Werror]
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
CC: Stephen Early <sde@individualpubs.co.uk>
-static inline uint16_t ip_fast_csum(uint8_t *iph, int32_t ihl)
+static inline uint16_t ip_fast_csum(const uint8_t *iph, int32_t ihl)
{
assert(ihl < INT_MAX/4);
return ip_csum(iph,ihl*4);
{
assert(ihl < INT_MAX/4);
return ip_csum(iph,ihl*4);