Skip to content

Commit 8a055ca

Browse files
authored
Merge pull request #1291 from justincormack/lu
Remove a compiler warning in some environments
2 parents ce450bc + 6ba5f5f commit 8a055ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/utils/cmsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ struct file_t recvfd(int sockfd)
131131
if (cmsg->cmsg_type != SCM_RIGHTS)
132132
error("recvfd: expected SCM_RIGHTS in cmsg: %d", cmsg->cmsg_type);
133133
if (cmsg->cmsg_len != CMSG_LEN(sizeof(int)))
134-
error("recvfd: expected correct CMSG_LEN in cmsg: %lu", cmsg->cmsg_len);
134+
error("recvfd: expected correct CMSG_LEN in cmsg: %lu", (unsigned long)cmsg->cmsg_len);
135135

136136
fdptr = (int *) CMSG_DATA(cmsg);
137137
if (!fdptr || *fdptr < 0)

0 commit comments

Comments
 (0)