diff options
author | Simon McVittie <smcv@collabora.com> | 2020-06-10 09:47:15 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2020-06-10 10:47:31 +0000 |
commit | eeef787418d7733f145a425a634669a53804ae6c (patch) | |
tree | 006941aa5e63b59ce2299e0def9871733df3bc49 /bus/signals.c | |
parent | 55911d3ca92a25c15d8ff2963b555488418942ea (diff) | |
download | dbus-eeef787418d7733f145a425a634669a53804ae6c.tar.gz |
Normalize C source files to end with exactly one newline
Some editors automatically remove trailing blank lines, or
automatically add a trailing newline to avoid having a trailing
non-blank line that is not terminated by a newline. To avoid unrelated
whitespace changes when users of such editors contribute to dbus,
let's pre-emptively normalize all files.
Unlike more intrusive whitespace normalization like removing trailing
whitespace from each line, this seems unlikely to cause significant
issues with cherry-picking changes to stable branches.
Implemented by:
find . -name '*.[ch]' -print0 | \
xargs -0 perl -0777 -p -i -e 's/\n+\z//g; s/\z/\n/g'
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'bus/signals.c')
-rw-r--r-- | bus/signals.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/bus/signals.c b/bus/signals.c index c1224e7e..08304c5b 100644 --- a/bus/signals.c +++ b/bus/signals.c @@ -2984,4 +2984,3 @@ bus_signals_test (const char *test_data_dir _DBUS_GNUC_UNUSED) } #endif /* DBUS_ENABLE_EMBEDDED_TESTS */ - |