From: Paul Eggert Date: Fri, 29 Dec 2023 00:32:28 +0000 (-0800) Subject: split: omit bad_cast X-Git-Tag: v9.5~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f651f4b3daf85c3f76a01f105afa7dc079643a8;p=thirdparty%2Fcoreutils.git split: omit bad_cast * src/split.c (infile): Now char const *, not char *. (main): Omit unnecessary bad_cast calls. --- diff --git a/src/split.c b/src/split.c index 868d94b41b..09a6420070 100644 --- a/src/split.c +++ b/src/split.c @@ -91,7 +91,7 @@ static char const *numeric_suffix_start; static char const *additional_suffix; /* Name of input file. May be "-". */ -static char *infile; +static char const *infile; /* stat buf for input file. */ static struct stat in_stat_buf; @@ -1367,8 +1367,8 @@ main (int argc, char **argv) /* Parse command line options. */ - infile = bad_cast ("-"); - outbase = bad_cast ("x"); + infile = "-"; + outbase = "x"; while (true) {