diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-11-01 15:43:56 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-11-01 15:43:56 +0000 |
commit | 4ccbbdd7246009c91a9aecb0976518e9e5804f79 (patch) | |
tree | 6cac36d9d054084f3c7f6c8693192331bf1778cd /bin | |
parent | b4023ee3d037c81b54fa0cd950f69da7aa435aca (diff) |
Drop a needless cast of a void *.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ksh/shf.c | 5 |
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; |