/*
- * Copyright (C) 2011-2014 jeanfi@gmail.com
+ * Copyright (C) 2011-2015 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
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));
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);
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);