summaryrefslogtreecommitdiffstats
path: root/if-bsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'if-bsd.c')
-rw-r--r--if-bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/if-bsd.c b/if-bsd.c
index 5bcf8b5d..e8c16f8f 100644
--- a/if-bsd.c
+++ b/if-bsd.c
@@ -68,7 +68,7 @@
sin.s_addr = ((sa) != NULL && ((sa)->sa_family == AF_INET || \
(sa)->sa_family == 255)) \
? \
- (((struct sockaddr_in *)sa)->sin_addr).s_addr : 0
+ (((struct sockaddr_in *)(void *)sa)->sin_addr).s_addr : 0
static int a_fd = -1;
static int r_fd = -1;