diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-17 00:32:29 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-17 00:43:09 +0100 |
commit | f5fb7c713ea443469406a691e60a6f4567a4cb75 (patch) | |
tree | b16d979915b5ad7e32ffe77ca5f5006dc639a16e /lwip | |
parent | dd3048b2e483f66571cfa1b2ccebb2091b9ad990 (diff) | |
download | hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.gz hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.bz2 hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.zip |
Fix const warnings
Now that the RPCs have const, this forces us cleaning our const-meant
functions.
Diffstat (limited to 'lwip')
-rw-r--r-- | lwip/iioctl-ops.c | 2 | ||||
-rw-r--r-- | lwip/socket-ops.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lwip/iioctl-ops.c b/lwip/iioctl-ops.c index 041da106..d0fe464c 100644 --- a/lwip/iioctl-ops.c +++ b/lwip/iioctl-ops.c @@ -33,7 +33,7 @@ /* Get the interface from its name */ static struct netif * -get_if (char *name) +get_if (const char *name) { char ifname[IFNAMSIZ]; struct netif *netif; diff --git a/lwip/socket-ops.c b/lwip/socket-ops.c index 005e41d3..5b50f58c 100644 --- a/lwip/socket-ops.c +++ b/lwip/socket-ops.c @@ -346,7 +346,7 @@ lwip_S_socket_send (struct sock_user * user, { int sent; int sockflags; - struct iovec iov = { data, datalen }; + struct iovec iov = { (char*) data, datalen }; struct msghdr m = { msg_name:addr ? &addr->address : 0, msg_namelen:addr ? addr->address.sa.sa_len : 0, msg_flags:flags, |