]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
split: omit bad_cast
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Dec 2023 00:32:28 +0000 (16:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Jan 2024 03:49:26 +0000 (19:49 -0800)
* src/split.c (infile): Now char const *, not char *.
(main): Omit unnecessary bad_cast calls.

src/split.c

index 868d94b41b1032abb1a092a6d0bca88f47d932ed..09a6420070df18445e42c2fd8a2e2b3d8b90cee2 100644 (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)
     {