mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 10:46:23 +00:00
Add size cast to avoid compilation warning for some linux compilers
This commit is contained in:
parent
912806360c
commit
88020a840d
@ -1178,7 +1178,7 @@ void netlink_poll(struct sched_ent *alarm)
|
||||
DEBUGF(overlayinterfaces, "recv(%d) len %u", alarm->poll.fd, len);
|
||||
|
||||
struct nlmsghdr *nlh = (struct nlmsghdr *)buff;
|
||||
for (nlh = (struct nlmsghdr *)buff; (NLMSG_OK (nlh, len)) && (nlh->nlmsg_type != NLMSG_DONE); nlh = NLMSG_NEXT(nlh, len)){
|
||||
for (nlh = (struct nlmsghdr *)buff; (NLMSG_OK (nlh, (size_t)len)) && (nlh->nlmsg_type != NLMSG_DONE); nlh = NLMSG_NEXT(nlh, len)){
|
||||
|
||||
switch(nlh->nlmsg_type){
|
||||
case RTM_NEWADDR:
|
||||
|
Loading…
Reference in New Issue
Block a user