Mercurial > hg > octave-lyh > gnulib-hg
changeset 16614:1e2b27c67c69
test-readtokens.c: use const; remove unwarranted cast
* tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 08 Mar 2012 12:04:16 +0100 |
parents | 59c55d0304b4 |
children | 3ecaf6d77eca |
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 Bruno Haible <bruno@clisp.org> + + test-readtokens.c: use const; remove unwarranted cast + * tests/test-readtokens.c: Declare delim to be const, to avoid a cast. + 2012-03-08 Bruno Haible <bruno@clisp.org> fmal: Avoid compilation error on AIX.
--- a/tests/test-readtokens.c +++ b/tests/test-readtokens.c @@ -56,7 +56,7 @@ main (int argc, char **argv) { token_buffer tb; - char *delim; + char const *delim; size_t delim_len; atexit (close_stdout); @@ -77,7 +77,7 @@ if (STREQ (delim, "\\0")) { - delim = (char *) ""; + delim = ""; delim_len = 1; }