summaryrefslogtreecommitdiff
path: root/lwip
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-01 13:53:31 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-01 18:05:00 +0100
commita8d51bf0ce26fd26e00338540857f43b8a99e126 (patch)
tree917f249fbf6873280161959c74a71b8edb0f4cea /lwip
parente2b75a67395fbbdd36bb0bceaea2465a2a1fa172 (diff)
Fix build warnings
No actual behavior change.
Diffstat (limited to 'lwip')
-rw-r--r--lwip/iioctl-ops.c2
-rw-r--r--lwip/io-ops.c2
-rw-r--r--lwip/port/netif/hurdethif.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/lwip/iioctl-ops.c b/lwip/iioctl-ops.c
index 6d3b6cb9..0834cd32 100644
--- a/lwip/iioctl-ops.c
+++ b/lwip/iioctl-ops.c
@@ -193,7 +193,7 @@ lwip_S_iioctl_siocsifflags (struct sock_user * user,
/* 17 SIOCGIFFLAGS -- Get flags of a network interface. */
kern_return_t
-lwip_S_iioctl_siocgifflags (struct sock_user * user, char *name, short *flags)
+lwip_S_iioctl_siocgifflags (struct sock_user * user, ifname_t name, short *flags)
{
error_t err = 0;
struct netif *netif;
diff --git a/lwip/io-ops.c b/lwip/io-ops.c
index f2ee01af..8e84e46b 100644
--- a/lwip/io-ops.c
+++ b/lwip/io-ops.c
@@ -492,7 +492,7 @@ lwip_S_io_get_icky_async_id (struct sock_user * user,
error_t
lwip_S_io_server_version (struct sock_user * user,
- char *name, int *major, int *minor, int *edit)
+ string_t name, int *major, int *minor, int *edit)
{
return EOPNOTSUPP;
}
diff --git a/lwip/port/netif/hurdethif.c b/lwip/port/netif/hurdethif.c
index e076a3ac..ec899e40 100644
--- a/lwip/port/netif/hurdethif.c
+++ b/lwip/port/netif/hurdethif.c
@@ -75,7 +75,7 @@ static struct bpf_insn bpf_ether_filter[] = {
{BPF_RET | BPF_K, 0, 0, 0}, /* Or discard it all */
};
-static int bpf_ether_filter_len = sizeof (bpf_ether_filter) / sizeof (short);
+static int bpf_ether_filter_len = sizeof (bpf_ether_filter) / (sizeof (short));
/* Bucket and class for the incoming data */
struct port_bucket *etherport_bucket;