Fix brace coding style issues

- Add missing braces to one-line if blocks
- Move opening brace to line end

Signed-off-by: Michael Straube <straubem@gmx.de>
This commit is contained in:
Michael Straube 2017-07-15 14:56:30 +02:00 committed by Allan McRae
parent 064e7280cb
commit 64b7edd2fe
2 changed files with 5 additions and 4 deletions

View file

@ -238,8 +238,7 @@ static alpm_list_t *find_unused(alpm_list_t *deltas, const char *to, off_t quota
for(i = vertices; i; i = i->next) { for(i = vertices; i; i = i->next) {
alpm_graph_t *v = i->data; alpm_graph_t *v = i->data;
alpm_delta_t *vdelta = v->data; alpm_delta_t *vdelta = v->data;
if(strcmp(vdelta->to, to) == 0) if(strcmp(vdelta->to, to) == 0) {
{
v->weight = vdelta->download_size; v->weight = vdelta->download_size;
} }
} }

View file

@ -271,8 +271,9 @@ alpm_list_t SYMEXPORT *alpm_find_group_pkgs(alpm_list_t *dbs,
alpm_db_t *db = i->data; alpm_db_t *db = i->data;
alpm_group_t *grp = alpm_db_get_group(db, name); alpm_group_t *grp = alpm_db_get_group(db, name);
if(!grp) if(!grp) {
continue; continue;
}
for(j = grp->packages; j; j = j->next) { for(j = grp->packages; j; j = j->next) {
alpm_pkg_t *pkg = j->data; alpm_pkg_t *pkg = j->data;
@ -288,8 +289,9 @@ alpm_list_t SYMEXPORT *alpm_find_group_pkgs(alpm_list_t *dbs,
}; };
ignorelist = alpm_list_add(ignorelist, pkg); ignorelist = alpm_list_add(ignorelist, pkg);
QUESTION(db->handle, &question); QUESTION(db->handle, &question);
if(!question.install) if(!question.install) {
continue; continue;
}
} }
if(!alpm_pkg_find(pkgs, pkg->name)) { if(!alpm_pkg_find(pkgs, pkg->name)) {
pkgs = alpm_list_add(pkgs, pkg); pkgs = alpm_list_add(pkgs, pkg);