Remove unneded {}s

$ perl -i -0pe 's|\s+{\n([^\n]*;)\n\s+}\n|\n\1\n|gms' **/*.c

Inspired by ea7cbf5bdd.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-04-13 09:31:49 +02:00
committed by Lennart Poettering
parent 8cf85bb575
commit 38cd55b007
11 changed files with 14 additions and 28 deletions
+1 -2
View File
@@ -336,9 +336,8 @@ static char* merge_unit_ids(const char* unit_log_field, char **pairs) {
STRV_FOREACH_PAIR(unit_id, job_type, pairs) {
next = strlen(unit_log_field) + strlen(*unit_id);
if (!GREEDY_REALLOC(ans, alloc, size + next + 1)) {
if (!GREEDY_REALLOC(ans, alloc, size + next + 1))
return mfree(ans);
}
sprintf(ans + size, "%s%s", unit_log_field, *unit_id);
if (*(unit_id+1))