diff options
author | Jim Meyering <meyering@redhat.com> | 2008-10-28 22:06:44 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-11-10 08:11:59 +0100 |
commit | 854284f7887677395239c1085b27a09e834291b7 (patch) | |
tree | c719e6ee13b41342e70faa7bf6f8e3bc0acdbfd1 /src/split.c | |
parent | 0e2ac2de24b2d64924826a693630d8d555beae3a (diff) | |
download | coreutils-854284f7887677395239c1085b27a09e834291b7.tar.xz |
avoid warnings about discarding "qualifiers from pointer target type"
Use the new "bad_cast" function or an actual cast-to-"(char *)"
to avoid warnings.
* src/system.h (bad_cast): Define.
* src/chown.c (main):
* src/chroot.c (main):
* src/date.c (main):
* src/du.c (main):
* src/expand.c (stdin_argv):
* src/ls.c (decode_switches):
* src/md5sum.c (main):
* src/paste.c (main):
* src/pr.c (col_sep_string, column_separator, line_separator, main):
* src/sort.c (main):
* src/split.c (main):
* src/tail.c (main):
* src/unexpand.c (stdin_argv):
* src/yes.c (main):
Diffstat (limited to 'src/split.c')
-rw-r--r-- | src/split.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/split.c b/src/split.c index be182eff6..1d8a94ca7 100644 --- a/src/split.c +++ b/src/split.c @@ -401,8 +401,8 @@ main (int argc, char **argv) /* Parse command line options. */ - infile = "-"; - outbase = "x"; + infile = bad_cast ( "-"); + outbase = bad_cast ("x"); while (1) { |