diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-02-12 12:17:31 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-02-12 12:18:30 +0100 |
commit | 270e06c906fea5609a5205c943cfa7b8770ba685 (patch) | |
tree | 6dc80c67e188e7046c70a64ba814c76e18c6a8b5 /pfinet | |
parent | 1e28cd1926ee8bc915783416135cd64f08b5ad5f (diff) | |
download | hurd-270e06c906fea5609a5205c943cfa7b8770ba685.tar.gz hurd-270e06c906fea5609a5205c943cfa7b8770ba685.tar.bz2 hurd-270e06c906fea5609a5205c943cfa7b8770ba685.zip |
Fix warning
* pfinet/io-ops.c (S_io_write), pfinet/socket-ops.c (S_socket_send):
Cast const void * pointer to void * when using it in struct iovec which
always uses a void* even when writing.
Diffstat (limited to 'pfinet')
-rw-r--r-- | pfinet/io-ops.c | 2 | ||||
-rw-r--r-- | pfinet/socket-ops.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c index e5df059d..fa6350c3 100644 --- a/pfinet/io-ops.c +++ b/pfinet/io-ops.c @@ -42,7 +42,7 @@ S_io_write (struct sock_user *user, mach_msg_type_number_t *amount) { error_t err; - struct iovec iov = { data, datalen }; + struct iovec iov = { (void*) data, datalen }; struct msghdr m = { msg_name: 0, msg_namelen: 0, msg_flags: 0, msg_controllen: 0, msg_iov: &iov, msg_iovlen: 1 }; diff --git a/pfinet/socket-ops.c b/pfinet/socket-ops.c index 490920e0..985d6b02 100644 --- a/pfinet/socket-ops.c +++ b/pfinet/socket-ops.c @@ -439,7 +439,7 @@ S_socket_send (struct sock_user *user, mach_msg_type_number_t *amount) { int sent; - struct iovec iov = { data, datalen }; + struct iovec iov = { (void*) data, datalen }; struct msghdr m = { msg_name: addr ? &addr->address : 0, msg_namelen: addr ? addr->address.sa_len : 0, msg_flags: flags, |