summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/ethers.c
diff options
context:
space:
mode:
authorguenther <>2016-09-21 04:38:56 +0000
committerguenther <>2016-09-21 04:38:56 +0000
commit9c39f482053578cd14ef5b179253da998be17454 (patch)
tree3bb42615ccded37cb263d99efa2577aacafc250f /src/lib/libc/net/ethers.c
parent6d139a2f685581fa5f221bba4bc860f16b4af925 (diff)
downloadopenbsd-9c39f482053578cd14ef5b179253da998be17454.tar.gz
openbsd-9c39f482053578cd14ef5b179253da998be17454.tar.bz2
openbsd-9c39f482053578cd14ef5b179253da998be17454.zip
Delete casts to off_t and size_t that are implied by assignments
or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
Diffstat (limited to 'src/lib/libc/net/ethers.c')
-rw-r--r--src/lib/libc/net/ethers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/ethers.c b/src/lib/libc/net/ethers.c
index a7e0796c72..de68c092f8 100644
--- a/src/lib/libc/net/ethers.c
+++ b/src/lib/libc/net/ethers.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ethers.c,v 1.24 2015/09/14 11:01:47 guenther Exp $ */ 1/* $OpenBSD: ethers.c,v 1.25 2016/09/21 04:38:56 guenther Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -144,7 +144,7 @@ ether_ntohost(char *hostname, struct ether_addr *e)
144 } 144 }
145#endif 145#endif
146 if (ether_line(buf, &try, hostname) == 0 && 146 if (ether_line(buf, &try, hostname) == 0 &&
147 memcmp((void *)&try, (void *)e, sizeof(try)) == 0) { 147 memcmp(&try, e, sizeof(try)) == 0) {
148 (void)fclose(f); 148 (void)fclose(f);
149 return (0); 149 return (0);
150 } 150 }