diff options
Diffstat (limited to 'bin/ksh/expand.h')
-rw-r--r-- | bin/ksh/expand.h | 6 |
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) |