split: omit bad_cast

* src/split.c (infile): Now char const *, not char *.
(main): Omit unnecessary bad_cast calls.
This commit is contained in:
Paul Eggert committed 2023-12-31 19:49:26 -08:00
1 parent 9e67ccd745
commit 1f651f4b3d
1 file changed
+3 -3
+3 -3
View File
@@ -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)
{