X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/7700a91f7a9184b64ca3f2cfae104d3e5eeca2ce..e13ab673e45ea48de49661f7838e75925f405514:/src/geonamessearch.c?ds=inline diff --git a/src/geonamessearch.c b/src/geonamessearch.c index ae48977e..5e521cf2 100644 --- a/src/geonamessearch.c +++ b/src/geonamessearch.c @@ -35,7 +35,6 @@ #include "curl_download.h" #define GEONAMES_WIKIPEDIA_URL_FMT "http://ws.geonames.org/wikipediaBoundingBoxJSON?formatted=true&north=%s&south=%s&east=%s&west=%s" -#define GEONAMES_SEARCH_URL_FMT "http://ws.geonames.org/searchJSON?formatted=true&style=medium&maxRows=10&lang=en&q=%s" #define GEONAMES_COUNTRY_PATTERN "\"countryName\": \"" #define GEONAMES_LONGITUDE_PATTERN "\"lng\": " #define GEONAMES_NAME_PATTERN "\"name\": \"" @@ -399,7 +398,7 @@ gchar *download_url(gchar *uri) tmp_file = fdopen(tmp_fd, "r+"); // TODO: curl may not be available - if (curl_download_uri(uri, tmp_file, NULL)) { // error + if (curl_download_uri(uri, tmp_file, NULL, 0, NULL)) { // error fclose(tmp_file); tmp_file = NULL; g_remove(tmpname);