summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-11-01 15:43:55 +0000
committermmcc <mmcc@openbsd.org>2015-11-01 15:43:55 +0000
commit65aca4e932dcab0e17985afc95478d96c8e49ede (patch)
tree0310d58fc8008dd77b812f11fad765d81e9daac6
parentDo not need to check the pledge control bits for system calls that are (diff)
downloadwireguard-openbsd-65aca4e932dcab0e17985afc95478d96c8e49ede.tar.xz
wireguard-openbsd-65aca4e932dcab0e17985afc95478d96c8e49ede.zip
Drop a needless cast of a void *.
-rw-r--r--bin/ksh/shf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/ksh/shf.c b/bin/ksh/shf.c
index e8a39b99088..f61d5de8869 100644
--- a/bin/ksh/shf.c
+++ b/bin/ksh/shf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shf.c,v 1.26 2015/10/23 17:22:43 mmcc Exp $ */
+/* $OpenBSD: shf.c,v 1.27 2015/11/01 15:43:55 mmcc Exp $ */
/*
* Shell file I/O routines
@@ -330,8 +330,7 @@ shf_emptybuf(struct shf *shf, int flags)
!(shf->flags & SHF_ALLOCB))
return EOF;
/* allocate more space for buffer */
- nbuf = (unsigned char *) aresize(shf->buf, shf->wbsize * 2,
- shf->areap);
+ nbuf = aresize(shf->buf, shf->wbsize * 2, shf->areap);
shf->rp = nbuf + (shf->rp - shf->buf);
shf->wp = nbuf + (shf->wp - shf->buf);
shf->rbsize += shf->wbsize;