mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
sync.c: fix style violations
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
4ccf49d3e7
commit
d981f93f18
@ -600,11 +600,12 @@ static int process_group(alpm_list_t *dbs, const char *group, int error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(config->print == 0) {
|
if(config->print == 0) {
|
||||||
|
char *array = malloc(count);
|
||||||
|
int n = 0;
|
||||||
colon_printf(_n("There is %d member in group %s:\n",
|
colon_printf(_n("There is %d member in group %s:\n",
|
||||||
"There are %d members in group %s:\n", count),
|
"There are %d members in group %s:\n", count),
|
||||||
count, group);
|
count, group);
|
||||||
select_display(pkgs);
|
select_display(pkgs);
|
||||||
char *array = malloc(count);
|
|
||||||
if(!array) {
|
if(!array) {
|
||||||
ret = 1;
|
ret = 1;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@ -614,12 +615,13 @@ static int process_group(alpm_list_t *dbs, const char *group, int error)
|
|||||||
free(array);
|
free(array);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
int n = 0;
|
for(i = pkgs, n = 0; i; i = alpm_list_next(i)) {
|
||||||
for(i = pkgs; i; i = alpm_list_next(i)) {
|
|
||||||
if(array[n++] == 0)
|
|
||||||
continue;
|
|
||||||
alpm_pkg_t *pkg = i->data;
|
alpm_pkg_t *pkg = i->data;
|
||||||
|
|
||||||
|
if(array[n++] == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if(process_pkg(pkg) == 1) {
|
if(process_pkg(pkg) == 1) {
|
||||||
ret = 1;
|
ret = 1;
|
||||||
free(array);
|
free(array);
|
||||||
|
Loading…
Reference in New Issue
Block a user