summaryrefslogtreecommitdiff
path: root/usr.bin/rdist/child.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-07-05 05:05:52 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-07-05 05:05:52 +0000
commit94914634f9dd2e53bb103041f46136d0073e411f (patch)
tree1da6488f805a8e495bc0afefcbac318545201b89 /usr.bin/rdist/child.c
parent557e697a376c8a36b83bfcae1e77798a2c4f8c90 (diff)
Use void* in malloc/realloc/calloc wrappers
Diffstat (limited to 'usr.bin/rdist/child.c')
-rw-r--r--usr.bin/rdist/child.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rdist/child.c b/usr.bin/rdist/child.c
index ec2af8aa43e..26fb18dd894 100644
--- a/usr.bin/rdist/child.c
+++ b/usr.bin/rdist/child.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: child.c,v 1.17 2014/07/04 21:50:13 guenther Exp $ */
+/* $OpenBSD: child.c,v 1.18 2014/07/05 05:05:51 guenther Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -138,7 +138,7 @@ copychild(CHILD *child)
{
CHILD *newc;
- newc = (CHILD *) xmalloc(sizeof(CHILD));
+ newc = xmalloc(sizeof *newc);
newc->c_name = xstrdup(child->c_name);
newc->c_readfd = child->c_readfd;