diff options
author | Jim Meyering <meyering@fb.com> | 2014-11-06 21:27:59 -0600 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-11-30 21:08:33 -0800 |
commit | 263c26e4d1b87a98aa8b97c8d5b707fd8e6b6bb8 (patch) | |
tree | 8f038cd8a1e70f2989a9e8b3066e1e953a5bc644 | |
parent | 2fae6cb1e3f6192652e487fede84b9decc69519e (diff) | |
download | sed-263c26e4d1b87a98aa8b97c8d5b707fd8e6b6bb8.tar.gz |
maint: add three casts-in-initialization to avoid warnings
* sed/compile.c (special_files): When initializing, cast string
literals to (char *) to avoid warnings.
-rw-r--r-- | sed/compile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sed/compile.c b/sed/compile.c index 0e9eec6..3b9264b 100644 --- a/sed/compile.c +++ b/sed/compile.c @@ -80,10 +80,10 @@ struct special_files { }; static FILE *my_stdin, *my_stdout, *my_stderr; -static const struct special_files special_files[] = { - { { "/dev/stdin", false, NULL, NULL }, &my_stdin }, - { { "/dev/stdout", false, NULL, NULL }, &my_stdout }, - { { "/dev/stderr", false, NULL, NULL }, &my_stderr }, +static struct special_files special_files[] = { + { { (char *) "/dev/stdin", false, NULL, NULL }, &my_stdin }, + { { (char *) "/dev/stdout", false, NULL, NULL }, &my_stdout }, + { { (char *) "/dev/stderr", false, NULL, NULL }, &my_stderr }, { { NULL, false, NULL, NULL }, NULL } }; |