summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-03-24 16:08:01 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-03-24 16:08:22 -0700
commitcc1477078d51841be248ab361d2c9e9f2d730902 (patch)
treeece0df4f1c43095e0498db945636043ab46bae87 /src
parent4c92a42eb832cecaa1fa27946ca28e896e0fa1d6 (diff)
downloaddiffutils-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 3871715..6af50e8 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -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 ();