diff --git a/CODING_STYLE b/CODING_STYLE index 4b84479d20..c5f1e2e6c9 100644 --- a/CODING_STYLE +++ b/CODING_STYLE @@ -2,7 +2,7 @@ - 8ch indent, no tabs - Variables and functions *must* be static, unless they have a - protoype, and are supposed to be exported. + prototype, and are supposed to be exported. - structs in MixedCase, variables + functions in lower_case 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("