summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-11-01 16:03:12 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-11-01 16:03:12 +0000
commit7f06b97e2d0d29642416d40a2eb7ba239048225a (patch)
tree69b5d0998911b031e9b840287deb4edfcec73af6 /bin
parent4ccbbdd7246009c91a9aecb0976518e9e5804f79 (diff)
Remove two casts of void* return types.
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/expand.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/expand.h b/bin/ksh/expand.h
index 733d65e288a..6d52c295cdd 100644
--- a/bin/ksh/expand.h
+++ b/bin/ksh/expand.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: expand.h,v 1.9 2015/11/01 15:38:53 mmcc Exp $ */
+/* $OpenBSD: expand.h,v 1.10 2015/11/01 16:03:11 mmcc Exp $ */
/*
* Expanding strings
@@ -90,7 +90,7 @@ typedef struct XPtrV {
#define XPput(x, p) do { \
if ((x).cur >= (x).end) { \
int n = XPsize(x); \
- (x).beg = (void**) areallocarray((x).beg, n*2, \
+ (x).beg = areallocarray((x).beg, n*2, \
sizeof(void *), ATEMP); \
(x).cur = (x).beg + n; \
(x).end = (x).cur + n; \
@@ -101,7 +101,7 @@ typedef struct XPtrV {
#define XPptrv(x) ((x).beg)
#define XPsize(x) ((x).cur - (x).beg)
-#define XPclose(x) (void**) areallocarray((x).beg, XPsize(x), \
+#define XPclose(x) areallocarray((x).beg, XPsize(x), \
sizeof(void *), ATEMP)
#define XPfree(x) afree((x).beg, ATEMP)