projects
/
ppastats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set copyright year to 2015
[ppastats.git]
/
src
/
lp_ws.c
diff --git
a/src/lp_ws.c
b/src/lp_ws.c
index
49166f4
..
523f185
100644
(file)
--- a/
src/lp_ws.c
+++ b/
src/lp_ws.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2011-201
4
jeanfi@gmail.com
+ * Copyright (C) 2011-201
5
jeanfi@gmail.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@
-205,7
+205,7
@@
struct bpph **get_bpph_list(const char *archive_url,
result = bpph_list_append_list(result,
json_object_to_bpph_list(o));
result = bpph_list_append_list(result,
json_object_to_bpph_list(o));
-
o_next = json_object_object_get(o, "next_collection_link"
);
+
json_object_object_get_ex(o, "next_collection_link", &o_next
);
if (o_next)
url = strdup(json_object_get_string(o_next));
if (o_next)
url = strdup(json_object_get_string(o_next));
@@
-409,7
+409,9
@@
static struct daily_download_total **retrieve_ddts(const char *binary_url,
ddts = NULL;
while (date_since < crt) {
ddts = NULL;
while (date_since < crt) {
- url = create_ddts_query(binary_url, date_since, date_since);
+ url = create_ddts_query(binary_url,
+ date_since,
+ date_since);
json = get_json_object(url);
free(url);
json = get_json_object(url);
free(url);
@@
-428,7
+430,8
@@
static struct daily_download_total **retrieve_ddts(const char *binary_url,
free(url);
if (json) {
free(url);
if (json) {
- tmp = json_object_to_daily_download_totals(json);
+ tmp = json_object_to_daily_download_totals
+ (json);
json_object_put(json);
ddts = ddts_merge(ddts, tmp);
free(tmp);
json_object_put(json);
ddts = ddts_merge(ddts, tmp);
free(tmp);