diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-22 08:18:37 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-22 08:18:37 +0000 |
commit | c964764abe68089905fdc2df2240bf0bd3040ab2 (patch) | |
tree | d0b52b3c4e8dec355bafe7b871e88fd38216e700 /bin/csh | |
parent | 33cbf9c5a02ce1c22aa55ebf53af0442489f0e0e (diff) |
Remove a needless allocation cast. No binary change.
Diffstat (limited to 'bin/csh')
-rw-r--r-- | bin/csh/glob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/csh/glob.c b/bin/csh/glob.c index e2f0f3197f2..c21c56559c0 100644 --- a/bin/csh/glob.c +++ b/bin/csh/glob.c @@ -1,4 +1,4 @@ -/* $OpenBSD: glob.c,v 1.20 2015/10/26 22:03:06 naddy Exp $ */ +/* $OpenBSD: glob.c,v 1.21 2015/12/22 08:18:36 mmcc Exp $ */ /* $NetBSD: glob.c,v 1.10 1995/03/21 09:03:01 cgd Exp $ */ /*- @@ -865,7 +865,7 @@ Gcat(Char *s1, Char *s2) gargv = xreallocarray(gargv, gargsiz, sizeof(Char *)); } gargv[gargc] = 0; - p = gargv[gargc - 1] = (Char *) xreallocarray(NULL, n, sizeof(Char)); + p = gargv[gargc - 1] = xreallocarray(NULL, n, sizeof(Char)); for (q = s1; (*p++ = *q++) != '\0';) continue; for (p--, q = s2; (*p++ = *q++) != '\0';) |