From f168c27313e4d7b0aabee037dc9c78a5799f0597 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Tue, 3 Dec 2013 22:27:45 +0100 Subject: trivial coding style clean ups - Add space between if/for and the opening parentheses - Place the opening brace on same line as the function (not for udev) From the CODING_STYLE Try to use this: void foo() { } instead of this: void foo() { } --- src/analyze/analyze.c | 2 +- src/bootchart/bootchart.c | 3 +- src/bootchart/svg.c | 4 +- src/initctl/initctl.c | 2 +- src/journal/coredumpctl.c | 2 +- src/libsystemd-bus/bus-dump.c | 2 +- src/modules-load/modules-load.c | 3 +- src/python-systemd/_reader.c | 108 +++++++++++++------------------------- src/python-systemd/login.c | 30 ++++------- src/shared/ioprio.h | 6 +-- src/shared/linux/auto_dev-ioctl.h | 3 +- src/shared/strxcpyx.c | 12 ++--- src/shared/util.c | 2 +- src/systemctl/systemctl.c | 12 ++--- src/test/test-libudev.c | 33 ++++-------- src/test/test-strbuf.c | 3 +- src/test/test-udev.c | 3 +- src/udev/net/link-config.c | 2 +- src/udev/udev-builtin-net_id.c | 2 +- src/udev/udev-ctrl.c | 2 +- src/udev/udev-rules.c | 2 +- 21 files changed, 85 insertions(+), 153 deletions(-) (limited to 'src') diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index eb85276b40..459f87957f 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -740,7 +740,7 @@ static int list_dependencies_one(sd_bus *bus, const char *name, unsigned int lev } } - if(!to_print) + if (!to_print) return r; STRV_FOREACH(c, deps) { diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c index 1f40c2edf4..fec63721a8 100644 --- a/src/bootchart/bootchart.c +++ b/src/bootchart/bootchart.c @@ -234,8 +234,7 @@ static int parse_args(int argc, char *argv[]) { return 0; } -static void do_journal_append(char *file) -{ +static void do_journal_append(char *file) { struct iovec iovec[5]; int r, f, j = 0; ssize_t n; diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index c088cad7f5..c21f6e86b4 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -509,7 +509,7 @@ static void svg_pss_graph(void) { continue; enc_name = xml_comment_encode(ps->name); - if(!enc_name) + if (!enc_name) continue; svg("