diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-03-24 16:08:01 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-03-24 16:08:22 -0700 |
commit | cc1477078d51841be248ab361d2c9e9f2d730902 (patch) | |
tree | ece0df4f1c43095e0498db945636043ab46bae87 /src | |
parent | 4c92a42eb832cecaa1fa27946ca28e896e0fa1d6 (diff) | |
download | diffutils-cc1477078d51841be248ab361d2c9e9f2d730902.tar.gz |
diff: pacify compiler re style
* src/diff.c (usage): Prefer &"string"[N] to "string" + N.
Some compilers complain about the latter, as they worry C++
refugees will think it’s string concatnation.
Diffstat (limited to 'src')
-rw-r--r-- | src/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1018,7 +1018,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\ msg = nl + 1; } - printf (" %s\n" + 2 * (*msg != ' ' && *msg != '-'), msg); + printf (&" %s\n"[2 * (*msg != ' ' && *msg != '-')], msg); } } emit_bug_reporting_address (); |