parse-datetime, tests: don't use "string" + int
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 May 2013 00:20:41 +0000 (17:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 May 2013 00:21:05 +0000 (17:21 -0700)
commit12335899d0089131d854aa1b074f0c4d841dff42
treeac45e8fac2869702eea8075f560d93ad1317572b
parent6e5f53c09490a510344a65d26f5e3989a048fcdf
parse-datetime, tests: don't use "string" + int

Recent versions of 'clang' complain about C source code that
uses expressions of the form '"string literal" + integer',
I guess on the theory that it's confusing for readers who are
used to C++.  On those grounds I suppose it's OK to make this
minor style change.
* lib/parse-datetime.y (parse_datetime):
* tests/test-fchdir.c (main):
* tests/test-snprintf-posix.h (test_function):
* tests/test-snprintf.c (main):
* tests/test-vasnprintf-posix.c (test_function):
* tests/test-vasnprintf.c (test_function):
* tests/test-vsnprintf.c (main):
* tests/unistdio/test-ulc-asnprintf1.h (test_function):
Rewrite '"str" + E' to '&"str"[E]'.
ChangeLog
lib/parse-datetime.y
tests/test-fchdir.c
tests/test-snprintf-posix.h
tests/test-snprintf.c
tests/test-vasnprintf-posix.c
tests/test-vasnprintf.c
tests/test-vsnprintf.c
tests/unistdio/test-ulc-asnprintf1.h