Merge pull request #1291 from justincormack/lu

Remove a compiler warning in some environments
This commit is contained in:
Qiang Huang 2017-01-25 16:35:38 +08:00 committed by GitHub
commit 8a055cad4b
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ struct file_t recvfd(int sockfd)
if (cmsg->cmsg_type != SCM_RIGHTS)
error("recvfd: expected SCM_RIGHTS in cmsg: %d", cmsg->cmsg_type);
if (cmsg->cmsg_len != CMSG_LEN(sizeof(int)))
error("recvfd: expected correct CMSG_LEN in cmsg: %lu", cmsg->cmsg_len);
error("recvfd: expected correct CMSG_LEN in cmsg: %lu", (unsigned long)cmsg->cmsg_len);
fdptr = (int *) CMSG_DATA(cmsg);
if (!fdptr || *fdptr < 0)