summaryrefslogtreecommitdiff
path: root/usr.sbin/mrinfo/mrinfo.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-21 02:07:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-21 02:07:33 +0000
commitb6541c8fb2bf7a1d6480b19e3db8264680805b17 (patch)
treeb0a496dfa7335b609f85fa1ae5ec0d4a7ea3a678 /usr.sbin/mrinfo/mrinfo.c
parentcacb390022ee8379c88381aa734bb8bcf1466b28 (diff)
since stdlib.h is in scope, don't cast.... you know the drill.
no sneakiness detected by krw
Diffstat (limited to 'usr.sbin/mrinfo/mrinfo.c')
-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");