diff --git a/plugins/input/osm/basiccurl.cpp b/plugins/input/osm/basiccurl.cpp index ef8c32f4e..021eacfff 100755 --- a/plugins/input/osm/basiccurl.cpp +++ b/plugins/input/osm/basiccurl.cpp @@ -39,7 +39,6 @@ CURL_LOAD_DATA* grab_http_response(const char* url) CURL_LOAD_DATA* do_grab(CURL* curl,const char* url) { - CURLcode res; CURL_LOAD_DATA* data = (CURL_LOAD_DATA*)malloc(sizeof(CURL_LOAD_DATA)); data->data = NULL; data->nbytes = 0; @@ -48,7 +47,10 @@ CURL_LOAD_DATA* do_grab(CURL* curl,const char* url) curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, response_callback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, data); - res = curl_easy_perform(curl); + CURLcode res = curl_easy_perform(curl); + if (res !=0) { + std::clog << "error grabbing data\n"; + } return data; } diff --git a/plugins/input/postgis/postgis_featureset.cpp b/plugins/input/postgis/postgis_featureset.cpp index 5ac6e85f4..dd121a36d 100644 --- a/plugins/input/postgis/postgis_featureset.cpp +++ b/plugins/input/postgis/postgis_featureset.cpp @@ -112,7 +112,7 @@ feature_ptr postgis_featureset::next() totalGeomSize_ += size; - int num_attrs = ctx_->size() + 1; + unsigned num_attrs = ctx_->size() + 1; for (; pos < num_attrs; ++pos) { std::string name = rs_->getFieldName(pos); diff --git a/plugins/input/postgis/postgis_featureset.hpp b/plugins/input/postgis/postgis_featureset.hpp index 80c011c83..013a7de0f 100644 --- a/plugins/input/postgis/postgis_featureset.hpp +++ b/plugins/input/postgis/postgis_featureset.hpp @@ -55,7 +55,7 @@ private: boost::shared_ptr rs_; context_ptr ctx_; boost::scoped_ptr tr_; - int totalGeomSize_; + unsigned totalGeomSize_; int feature_id_; bool key_field_; };