diff options
| author | Roy Marples <roy@marples.name> | 2019-10-07 15:13:05 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-10-07 15:13:05 +0100 |
| commit | 31fdde5d8ce4fb3953eda93b9b06984cf22c1ac2 (patch) | |
| tree | 4291080e2cc974992899d5375668d9889a773f11 | |
| parent | 93c69bf8f2d6d6b5dd41f177bef43c5756b9d354 (diff) | |
| download | parpd-31fdde5d8ce4fb3953eda93b9b06984cf22c1ac2.tar.xz | |
Fix more compile warnings.
| -rw-r--r-- | src/parpd.c | 2 | ||||
| -rw-r--r-- | 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; |
