Сравнить коммиты

..

Ничего общего в коммитах. '0f6b48aab394dfb5b338796500e6c9cd0690258e' и 'c958a5381e4d3ee0506ceb36878964fa32fccef7' имеют совершенно разные истории.

@ -61,19 +61,15 @@ Input download(const string& address)
stringstream buffer; stringstream buffer;
CURL* curl = curl_easy_init(); CURL* curl = curl_easy_init();
if(curl) { if(curl) {
CURLcode res,res1; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, address.c_str()); curl_easy_setopt(curl, CURLOPT_URL, address.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer);
res = curl_easy_perform(curl); res = curl_easy_perform(curl);
if (!res){ if (res != 0){
curl_off_t speed; cout << curl_easy_strerror(res);
res1 = curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD_T, &speed);
if(!res1){
cout << "Upload speed bytes/sec\n" << speed;
exit(1); exit(1);
} }
}
curl_easy_cleanup(curl); curl_easy_cleanup(curl);
} }
return input_data(buffer,false); return input_data(buffer,false);

Загрузка…
Отмена
Сохранить