From 31fdde5d8ce4fb3953eda93b9b06984cf22c1ac2 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 7 Oct 2019 15:13:05 +0100 Subject: Fix more compile warnings. --- src/parpd.c | 2 +- src/parpd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parpd.c b/src/parpd.c index cb2493b..5859017 100644 --- a/src/parpd.c +++ b/src/parpd.c @@ -391,7 +391,7 @@ proxy(rb_tree_t *ps, in_addr_t ip, const uint8_t **hw, size_t *hwlen) (sizeof(struct arphdr) + (2 * sizeof(uint32_t)) + (2 * HWADDR_LEN)) /* Does what is says on the tin - sends an ARP message */ static ssize_t -send_arp(const struct interface *ifp, int op, size_t hlen, +send_arp(const struct interface *ifp, uint16_t op, size_t hlen, const uint8_t *sha, in_addr_t sip, const uint8_t *tha, in_addr_t tip) { uint8_t arp_buffer[ARP_LEN]; diff --git a/src/parpd.h b/src/parpd.h index 87c0cfd..79182de 100644 --- a/src/parpd.h +++ b/src/parpd.h @@ -57,7 +57,7 @@ struct interface { rb_node_t rbtree; char ifname[IF_NAMESIZE]; - int family; + sa_family_t family; unsigned char hwaddr[HWADDR_LEN]; size_t hwlen; int fd; -- cgit v1.2.3