mirror of https://github.com/F-Stack/f-stack.git
Fix missing sizeof().
This commit is contained in:
parent
dc77017216
commit
87d3f2cecd
|
@ -559,7 +559,7 @@ freebsd2linux_cmsghdr(struct linux_msghdr *linux_msg, const struct msghdr *freeb
|
|||
*linux_optval = *freebsd_optval;
|
||||
break;
|
||||
case IP_RECVTTL:
|
||||
linux_cmsg->cmsg_len = LINUX_CMSG_LEN(int);
|
||||
linux_cmsg->cmsg_len = LINUX_CMSG_LEN(sizeof(int));
|
||||
linux_cmsg->cmsg_type = LINUX_IP_TTL;
|
||||
*(int *)linux_optval = *freebsd_optval;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue