Mercurial > hg > octave-nkf > gnulib-hg
changeset 16609:1e35ae24b8f2
test-readtokens.c: avoid const-related compilation warnings
* tests/test-readtokens.c: Avoid const-related compilation warnings.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Thu, 08 Mar 2012 08:25:08 +0100 |
parents | 33400f2acfe2 |
children | ef330e58b855 |
files | ChangeLog tests/test-readtokens.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-03-08 Jim Meyering <meyering@redhat.com> + + test-readtokens.c: avoid const-related compilation warnings + * tests/test-readtokens.c: Avoid const-related compilation warnings. + 2012-03-07 Jim Meyering <meyering@redhat.com> Bruno Haible <bruno@clisp.org>
--- a/tests/test-readtokens.c +++ b/tests/test-readtokens.c @@ -30,7 +30,7 @@ static void basic (void) { - char *filename = "in.827"; + char const *filename = "in.827"; int fd = open (filename, O_CREAT | O_WRONLY, 0600); ASSERT (fd >= 0); ASSERT (write (fd, "a|b;c+d", 7) == 7); @@ -77,7 +77,7 @@ if (STREQ (delim, "\\0")) { - delim = ""; + delim = (char *) ""; delim_len = 1; }