diff options
author | 2014-07-05 05:05:51 +0000 | |
---|---|---|
committer | 2014-07-05 05:05:51 +0000 | |
commit | bbadc118cf51728f73417606a6e4fb2a206cdfab (patch) | |
tree | a725df64bafd63efde93cd8360f6353ee873d5cf /usr.bin/rdist/client.c | |
parent | Cleanup regarding -offset and -width: (diff) | |
download | wireguard-openbsd-bbadc118cf51728f73417606a6e4fb2a206cdfab.tar.xz wireguard-openbsd-bbadc118cf51728f73417606a6e4fb2a206cdfab.zip |
Use void* in malloc/realloc/calloc wrappers
Diffstat (limited to 'usr.bin/rdist/client.c')
-rw-r--r-- | usr.bin/rdist/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rdist/client.c b/usr.bin/rdist/client.c index 8189cb3fa48..17d66472f33 100644 --- a/usr.bin/rdist/client.c +++ b/usr.bin/rdist/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.26 2013/08/18 16:32:24 guenther Exp $ */ +/* $OpenBSD: client.c,v 1.27 2014/07/05 05:05:51 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -204,7 +204,7 @@ addcmdspecialfile(char *starget, char *rname, int destdir) } if (isokay) { - new = (struct namelist *) xmalloc(sizeof(struct namelist)); + new = xmalloc(sizeof *new); new->n_name = xstrdup(rfile); new->n_regex = NULL; new->n_next = updfilelist; @@ -323,7 +323,7 @@ linkinfo(struct stat *statp) return(lp); } - lp = (struct linkbuf *) xmalloc(sizeof(*lp)); + lp = xmalloc(sizeof(*lp)); lp->nextp = ihead; ihead = lp; lp->inum = statp->st_ino; |