From: Jean-Philippe Orsini Date: Sun, 23 Feb 2014 10:11:01 +0000 (+0000) Subject: fixed style X-Git-Tag: v1.3.0~31 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=ppastats.git;a=commitdiff_plain;h=0303d0d705cfc2a100403a708fca0e93b12d2a93 fixed style --- diff --git a/src/main.c b/src/main.c index 961c468..b590c67 100644 --- a/src/main.c +++ b/src/main.c @@ -199,7 +199,8 @@ int main(int argc, char **argv) } if (!cmdok || optind + 2 != argc) { - fprintf(stderr, _("Try `%s --help' for more information.\n"), + fprintf(stderr, + _("Try `%s --help' for more information.\n"), program_name); exit(EXIT_FAILURE); } @@ -210,8 +211,12 @@ int main(int argc, char **argv) ppa = argv[optind+1]; if (output_html) - ppa_to_html(owner, ppa, package_status, output_dir, - install_static_files, ws_size); + ppa_to_html(owner, + ppa, + package_status, + output_dir, + install_static_files, + ws_size); else display_published_binaries(owner, ppa, package_status, ws_size); diff --git a/src/ppastats.c b/src/ppastats.c index a7cd7e9..5fb0be1 100644 --- a/src/ppastats.c +++ b/src/ppastats.c @@ -183,8 +183,8 @@ static struct daily_download_total **add_total item = malloc(sizeof(struct daily_download_total)); memcpy(item, total, sizeof(struct daily_download_total)); - result = (struct daily_download_total **) - list_add((void **)totals, (void *)item); + result = (struct daily_download_total **)list_add((void **)totals, + (void *)item); free(totals); @@ -194,14 +194,12 @@ static struct daily_download_total **add_total struct daily_download_total **add_totals (struct daily_download_total **total1, struct daily_download_total **total2) { - struct daily_download_total **cur; - struct daily_download_total **result; + struct daily_download_total **cur, **result; result = total1; cur = total2; while (*cur) { result = add_total(result, *cur); - cur++; } @@ -231,9 +229,8 @@ pkg_add_distro(struct package_stats *pkg, if (!pkg_distro) { pkg_distro = distro_stats_new(distro_name); - tmp - = (struct distro_stats **) - list_add((void **)pkg->distros, (void *)pkg_distro); + tmp = (struct distro_stats **)list_add((void **)pkg->distros, + (void *)pkg_distro); free(pkg->distros); pkg->distros = tmp; }