summaryrefslogtreecommitdiff
path: root/lib/libc/net/ethers.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/ethers.c')
-rw-r--r--lib/libc/net/ethers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/ethers.c b/lib/libc/net/ethers.c
index a7e0796c72f..de68c092f8c 100644
--- a/lib/libc/net/ethers.c
+++ b/lib/libc/net/ethers.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ethers.c,v 1.24 2015/09/14 11:01:47 guenther Exp $ */
+/* $OpenBSD: ethers.c,v 1.25 2016/09/21 04:38:56 guenther Exp $ */
/*
* Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -144,7 +144,7 @@ ether_ntohost(char *hostname, struct ether_addr *e)
}
#endif
if (ether_line(buf, &try, hostname) == 0 &&
- memcmp((void *)&try, (void *)e, sizeof(try)) == 0) {
+ memcmp(&try, e, sizeof(try)) == 0) {
(void)fclose(f);
return (0);
}