From 497e16d17e06f1f303de8f10398353b0821f9c1e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Sat, 15 Feb 2014 18:59:12 +0000 Subject: [PATCH] fixed style --- po/fr.po | 7 +------ po/ppastats.pot | 7 +------ src/lp.c | 12 ++++++------ 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/po/fr.po b/po/fr.po index 957509d..5a81eeb 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: ppastats 0.0.x\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-02-15 09:31+0100\n" +"POT-Creation-Date: 2014-02-15 19:58+0100\n" "PO-Revision-Date: 2012-05-05 23:45+0200\n" "Last-Translator: \n" "Language-Team: French\n" @@ -153,8 +153,3 @@ msgstr "" #, c-format msgid "Failed to retrieve download totals for %s" msgstr "" - -#: src/ppastats.c:275 -#, c-format -msgid "Failed to retrieve download count for %s" -msgstr "" diff --git a/po/ppastats.pot b/po/ppastats.pot index 65f5a1a..ab4bf39 100644 --- a/po/ppastats.pot +++ b/po/ppastats.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: ppastats 0.0.x\n" "Report-Msgid-Bugs-To: jeanfi@gmail.com\n" -"POT-Creation-Date: 2014-02-15 09:31+0100\n" +"POT-Creation-Date: 2014-02-15 19:58+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -143,8 +143,3 @@ msgstr "" #, c-format msgid "Failed to retrieve download totals for %s" msgstr "" - -#: src/ppastats.c:275 -#, c-format -msgid "Failed to retrieve download count for %s" -msgstr "" diff --git a/src/lp.c b/src/lp.c index 351b8fe..e23b77b 100644 --- a/src/lp.c +++ b/src/lp.c @@ -230,7 +230,7 @@ time_t ddts_get_last_date(struct daily_download_total **ddts) return 0; last_t = 0; - for(cur = ddts; *cur; cur++) { + for (cur = ddts; *cur; cur++) { t = mktime(&(*cur)->date); if (t > last_t) last_t = t; @@ -247,7 +247,7 @@ int ddts_length(struct daily_download_total **ddts) n = 0; if (ddts) - for(cur = ddts; *cur; cur++) + for (cur = ddts; *cur; cur++) n++; return n; @@ -291,7 +291,8 @@ ddts_merge(struct daily_download_total **ddts1, struct daily_download_total **ddts, **cur, **tmp; if (ddts1) { - ddts = malloc((ddts_length(ddts1) + 1) * sizeof(struct daily_download_total *)); + ddts = malloc((ddts_length(ddts1) + 1) + * sizeof(struct daily_download_total *)); memcpy(ddts, ddts1, (ddts_length(ddts1) + 1) * sizeof(void *)); } else { ddts = malloc(sizeof(struct daily_download_total *)); @@ -299,11 +300,10 @@ ddts_merge(struct daily_download_total **ddts1, } if (ddts2) - for(cur = ddts2; *cur; cur++) { + for (cur = ddts2; *cur; cur++) { tmp = add_total(ddts, *cur); - if (tmp != ddts) { + if (tmp != ddts) ddts = tmp; - } } return ddts; -- 2.7.4