mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
ca-fd-leak: add missing c casts
This commit is contained in:
parent
b338140931
commit
b9bbdbeb0b
1 changed files with 2 additions and 2 deletions
|
@ -49,8 +49,8 @@ int main(int argc, char **argv) {
|
|||
msg.msg_controllen = CMSG_SPACE(sizeof(int));
|
||||
|
||||
// Write a single null byte too.
|
||||
msg.msg_iov = malloc(sizeof(struct iovec));
|
||||
msg.msg_iov[0].iov_base = "";
|
||||
msg.msg_iov = (struct iovec*) malloc(sizeof(struct iovec));
|
||||
msg.msg_iov[0].iov_base = (void*) "";
|
||||
msg.msg_iov[0].iov_len = 1;
|
||||
msg.msg_iovlen = 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue