projects
/
ppastats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed style
[ppastats.git]
/
src
/
ppastats.c
diff --git
a/src/ppastats.c
b/src/ppastats.c
index
a7cd7e9
..
5fb0be1
100644
(file)
--- 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));
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);
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 **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);
result = total1;
cur = total2;
while (*cur) {
result = add_total(result, *cur);
-
cur++;
}
cur++;
}
@@
-231,9
+229,8
@@
pkg_add_distro(struct package_stats *pkg,
if (!pkg_distro) {
pkg_distro = distro_stats_new(distro_name);
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;
}
free(pkg->distros);
pkg->distros = tmp;
}