summaryrefslogtreecommitdiff
path: root/dbus/dbus-shell.h
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2020-06-10 09:47:15 +0100
committerSimon McVittie <smcv@collabora.com>2020-06-10 10:47:31 +0000
commiteeef787418d7733f145a425a634669a53804ae6c (patch)
tree006941aa5e63b59ce2299e0def9871733df3bc49 /dbus/dbus-shell.h
parent55911d3ca92a25c15d8ff2963b555488418942ea (diff)
downloaddbus-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-shell.h')
-rw-r--r--dbus/dbus-shell.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/dbus/dbus-shell.h b/dbus/dbus-shell.h
index 06da274e..e6f6b595 100644
--- a/dbus/dbus-shell.h
+++ b/dbus/dbus-shell.h
@@ -37,5 +37,3 @@ dbus_bool_t _dbus_shell_parse_argv (const char *command_line,
DBUS_END_DECLS
#endif /* DBUS_SHELL_H */
-
-