diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-09-01 13:12:32 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-09-01 13:12:32 +0000 |
commit | 7fffd18f58839f079048dbc1ef5ac199a709b13d (patch) | |
tree | 666bed69f5dc7607a894dd63d798484f39a28a45 /bin/ksh/syn.c | |
parent | e75a4737e7e5686910f3af279fc62c313c1c4cd5 (diff) |
remove casts and null checks before free. from Michael McConville
ok deraadt
Diffstat (limited to 'bin/ksh/syn.c')
-rw-r--r-- | bin/ksh/syn.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |