summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iface.h3
-rw-r--r--llmnr.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/iface.h b/iface.h
index cdcf716..47321d5 100644
--- a/iface.h
+++ b/iface.h
@@ -26,7 +26,8 @@ enum iface_event_type {
IFACE_DEL,
};
-typedef void (*iface_event_handler_t)(enum iface_event_type, int af, unsigned int ifindex);
+typedef void (*iface_event_handler_t)(enum iface_event_type, unsigned char af,
+ unsigned int ifindex);
void iface_register_event_handler(iface_event_handler_t event_handler);
int iface_start_thread(void);
diff --git a/llmnr.c b/llmnr.c
index f08c5d1..b3b2835 100644
--- a/llmnr.c
+++ b/llmnr.c
@@ -45,7 +45,8 @@ static bool llmnr_running = true;
*/
static char llmnr_hostname[LLMNR_LABEL_MAX_SIZE + 2];
-static void llmnr_iface_event_handle(enum iface_event_type type, int af, unsigned int ifindex)
+static void llmnr_iface_event_handle(enum iface_event_type type, unsigned char af,
+ unsigned int ifindex)
{
switch (af) {
case AF_INET: