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 | |
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')
-rw-r--r-- | bus/activation-helper-bin.c | 1 | ||||
-rw-r--r-- | bus/activation-helper.c | 1 | ||||
-rw-r--r-- | bus/config-parser-common.c | 1 | ||||
-rw-r--r-- | bus/config-parser-common.h | 1 | ||||
-rw-r--r-- | bus/config-parser-trivial.c | 1 | ||||
-rw-r--r-- | bus/config-parser.c | 1 | ||||
-rw-r--r-- | bus/policy.c | 1 | ||||
-rw-r--r-- | bus/signals.c | 1 |
8 files changed, 0 insertions, 8 deletions
diff --git a/bus/activation-helper-bin.c b/bus/activation-helper-bin.c index f5f16d2c..0446ee23 100644 --- a/bus/activation-helper-bin.c +++ b/bus/activation-helper-bin.c @@ -100,4 +100,3 @@ main (int argc, char **argv) return retval; } - diff --git a/bus/activation-helper.c b/bus/activation-helper.c index 5b6a0908..8172b6cf 100644 --- a/bus/activation-helper.c +++ b/bus/activation-helper.c @@ -546,4 +546,3 @@ error_free_parser: error: return retval; } - diff --git a/bus/config-parser-common.c b/bus/config-parser-common.c index 1d981640..627c9013 100644 --- a/bus/config-parser-common.c +++ b/bus/config-parser-common.c @@ -192,4 +192,3 @@ bus_config_parser_element_type_to_name (ElementType type) return NULL; } } - diff --git a/bus/config-parser-common.h b/bus/config-parser-common.h index e3775eef..1c601e97 100644 --- a/bus/config-parser-common.h +++ b/bus/config-parser-common.h @@ -57,4 +57,3 @@ ElementType bus_config_parser_element_name_to_type (const char *element_name); const char* bus_config_parser_element_type_to_name (ElementType type); #endif /* BUS_CONFIG_PARSER_COMMON_H */ - diff --git a/bus/config-parser-trivial.c b/bus/config-parser-trivial.c index fd7bbf00..9a2087cf 100644 --- a/bus/config-parser-trivial.c +++ b/bus/config-parser-trivial.c @@ -750,4 +750,3 @@ finish: } #endif /* DBUS_ENABLE_EMBEDDED_TESTS */ - diff --git a/bus/config-parser.c b/bus/config-parser.c index a47b8a58..f9b70477 100644 --- a/bus/config-parser.c +++ b/bus/config-parser.c @@ -4056,4 +4056,3 @@ bus_config_parser_test (const char *test_data_dir_cstr) } #endif /* DBUS_ENABLE_EMBEDDED_TESTS */ - diff --git a/bus/policy.c b/bus/policy.c index 0e67e64c..74cb41bd 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -1406,4 +1406,3 @@ bus_policy_check_can_own (BusPolicy *policy, return bus_rules_check_can_own (policy->default_rules, service_name); } #endif /* DBUS_ENABLE_EMBEDDED_TESTS */ - 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 */ - |