From f5fb7c713ea443469406a691e60a6f4567a4cb75 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 17 Jan 2022 00:32:29 +0100 Subject: Fix const warnings Now that the RPCs have const, this forces us cleaning our const-meant functions. --- lwip/iioctl-ops.c | 2 +- lwip/socket-ops.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lwip') 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, -- cgit v1.2.3