From c964764abe68089905fdc2df2240bf0bd3040ab2 Mon Sep 17 00:00:00 2001 From: mmcc Date: Tue, 22 Dec 2015 08:18:37 +0000 Subject: Remove a needless allocation cast. No binary change. --- bin/csh/glob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/csh') 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';) -- cgit v1.2.3