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 /dbus/dbus-transport-socket.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 'dbus/dbus-transport-socket.c')
-rw-r--r-- | dbus/dbus-transport-socket.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/dbus/dbus-transport-socket.c b/dbus/dbus-transport-socket.c index 04b3b414..fa1307bd 100644 --- a/dbus/dbus-transport-socket.c +++ b/dbus/dbus-transport-socket.c @@ -1503,4 +1503,3 @@ _dbus_transport_open_socket(DBusAddressEntry *entry, } /** @} */ - |