~michel-slm/coreutils

1f651f4b3daf85c3f76a01f105afa7dc079643a8 — Paul Eggert 8 months ago 9e67ccd
split: omit bad_cast

* src/split.c (infile): Now char const *, not char *.
(main): Omit unnecessary bad_cast calls.
1 files changed, 3 insertions(+), 3 deletions(-)

M src/split.c
M src/split.c => src/split.c +3 -3
@@ 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)
    {