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>
21 files changed:
error:
return retval;
}
-
const char* bus_config_parser_element_type_to_name (ElementType type);
#endif /* BUS_CONFIG_PARSER_COMMON_H */
-
}
#endif /* DBUS_ENABLE_EMBEDDED_TESTS */
-
}
#endif /* DBUS_ENABLE_EMBEDDED_TESTS */
-
return bus_rules_check_can_own (policy->default_rules, service_name);
}
#endif /* DBUS_ENABLE_EMBEDDED_TESTS */
-
}
#endif /* DBUS_ENABLE_EMBEDDED_TESTS */
-
DBUS_END_DECLS
#endif /* DBUS_ADDRESS_H */
-
#include <config.h>
#include "dbus-file.h"
-
#endif /* !DOXYGEN_SHOULD_SKIP_THIS */
#endif /* DBUS_MAINLOOP_H */
-
DBUS_END_DECLS
#endif /* DBUS_MISC_H */
-
/** @} */
#endif /* DBUS_ENABLE_EMBEDDED_TESTS */
-
DBUS_END_DECLS
#endif /* DBUS_SHELL_H */
-
-
fprintf (stderr, "Error: %s\n", error.message);
exit (1);
}
-
*endptr = (char *)(any ? s - 1 : nptr);
return (acc);
}
-