From 7fffd18f58839f079048dbc1ef5ac199a709b13d Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 1 Sep 2015 13:12:32 +0000 Subject: remove casts and null checks before free. from Michael McConville ok deraadt --- bin/ksh/syn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/ksh/syn.c') diff --git a/bin/ksh/syn.c b/bin/ksh/syn.c index 2e92489de40..6167ba92d2f 100644 --- a/bin/ksh/syn.c +++ b/bin/ksh/syn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syn.c,v 1.29 2013/06/03 18:40:05 jca Exp $ */ +/* $OpenBSD: syn.c,v 1.30 2015/09/01 13:12:31 tedu Exp $ */ /* * shell parser (C version) @@ -206,7 +206,7 @@ get_command(int cf) switch (c = token(cf|KEYWORD|ALIAS|VARASN)) { default: REJECT; - afree((void*) iops, ATEMP); + afree(iops, ATEMP); XPfree(args); XPfree(vars); return NULL; /* empty line */ @@ -385,7 +385,7 @@ get_command(int cf) } if (iopn == 0) { - afree((void*) iops, ATEMP); + afree(iops, ATEMP); t->ioact = NULL; } else { iops[iopn++] = NULL; -- cgit v1.2.3