diff options
| author | guenther <> | 2016-09-21 04:38:56 +0000 | 
|---|---|---|
| committer | guenther <> | 2016-09-21 04:38:56 +0000 | 
| commit | 4f42c802703f53d8169bb55766b44a362a136d7c (patch) | |
| tree | 3bb42615ccded37cb263d99efa2577aacafc250f /src/lib/libc/net/ethers.c | |
| parent | b65bd0dd3dc7a1678328dd8715abf9c0691ff3e5 (diff) | |
| download | openbsd-4f42c802703f53d8169bb55766b44a362a136d7c.tar.gz openbsd-4f42c802703f53d8169bb55766b44a362a136d7c.tar.bz2 openbsd-4f42c802703f53d8169bb55766b44a362a136d7c.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.c | 4 | 
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 | } | 
