.. | .. |
---|
17 | 17 | #include <stdbool.h> |
---|
18 | 18 | #include <stdlib.h> |
---|
19 | 19 | #include <stdio.h> |
---|
20 | | -#include <stdlib.h> |
---|
21 | 20 | #include <string.h> |
---|
22 | 21 | #include <sys/ioctl.h> |
---|
23 | 22 | #include <sys/socket.h> |
---|
.. | .. |
---|
441 | 440 | if (ret == -1) |
---|
442 | 441 | error(1, errno, "sendmsg"); |
---|
443 | 442 | if (ret != msg->msg_iov->iov_len) |
---|
444 | | - error(1, 0, "sendto: %d != %lu", ret, msg->msg_iov->iov_len); |
---|
| 443 | + error(1, 0, "sendto: %d != %llu", ret, |
---|
| 444 | + (unsigned long long)msg->msg_iov->iov_len); |
---|
445 | 445 | if (msg->msg_flags) |
---|
446 | 446 | error(1, 0, "sendmsg: return flags 0x%x\n", msg->msg_flags); |
---|
447 | 447 | |
---|