summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mrinfo
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-08-21 02:07:32 +0000
committerderaadt <deraadt@openbsd.org>2015-08-21 02:07:32 +0000
commit323ce4b6a25b102eede47f50fe4517edb2cd96bf (patch)
treee7d30da336a6c8d1bdeb95d749904c0c26fc6551 /usr.sbin/mrinfo
parentFix typo: MODLUA_DEAFULT_VERSION to MODLUA_DEFAULT_VERSION. (diff)
downloadwireguard-openbsd-323ce4b6a25b102eede47f50fe4517edb2cd96bf.tar.xz
wireguard-openbsd-323ce4b6a25b102eede47f50fe4517edb2cd96bf.zip
since stdlib.h is in scope, don't cast.... you know the drill.
no sneakiness detected by krw
Diffstat (limited to 'usr.sbin/mrinfo')
-rw-r--r--usr.sbin/mrinfo/mrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mrinfo/mrinfo.c b/usr.sbin/mrinfo/mrinfo.c
index 55de2f0c8bc..c1f70d9723d 100644
--- a/usr.sbin/mrinfo/mrinfo.c
+++ b/usr.sbin/mrinfo/mrinfo.c
@@ -348,7 +348,7 @@ main(int argc, char *argv[])
if ((target_addr = inet_addr(host)) != -1) {
hp = &bogus;
hp->h_length = sizeof(target_addr);
- if (!(hp->h_addr_list = (char **)calloc(2, sizeof(char *))))
+ if (!(hp->h_addr_list = calloc(2, sizeof(char *))))
err(1, "can't allocate memory");
if (!(hp->h_addr_list[0] = malloc(hp->h_length)))
err(1, "can't allocate memory");