Minor changes.

--HG--
branch : dev
This commit is contained in:
Martín Lucas Golini
2019-05-05 19:16:32 -03:00
parent 48a31680e4
commit 5204e31228
3 changed files with 5 additions and 9 deletions

View File

@@ -11,7 +11,6 @@
#include <eepp/system/mutex.hpp>
#include <eepp/system/lock.hpp>
#include <eepp/network/uri.hpp>
#include <eepp/thirdparty/PlusCallback/callback.hpp>
#include <map>
#include <string>
#include <list>

View File

@@ -21,7 +21,7 @@ Compression::Status Compression::compress(IOStream& dst, IOStream& src, Compress
case MODE_GZIP:
{
int ret, flush;
unsigned have;
ios_size have;
z_stream strm = {};
char in[DEFLATE_CHUNK_SIZE];
char out[DEFLATE_CHUNK_SIZE];

View File

@@ -35,15 +35,15 @@ EE_MAIN_FUNC int main (int argc, char * argv []) {
parser.ParseCLI(argc, argv);
} catch (const args::Help&) {
std::cout << parser;
return 0;
return EXIT_SUCCESS;
} catch (const args::ParseError& e) {
std::cerr << e.what() << std::endl;
std::cerr << parser;
return 1;
return EXIT_FAILURE;
} catch (args::ValidationError& e) {
std::cerr << e.what() << std::endl;
std::cerr << parser;
return 1;
return EXIT_FAILURE;
}
{
@@ -59,10 +59,7 @@ EE_MAIN_FUNC int main (int argc, char * argv []) {
http.setHost("http://en.wikipedia.org");
}
// Prepare a request to get the wikipedia main page
request.setUri("/wiki/Main_Page");
// Creates an async http request
// Creates an async http request and set the path requested
Http::Request asyncRequest( "/wiki/" + Version::getCodename() );
http.sendAsyncRequest([]( const Http& http, Http::Request& request, Http::Response& response ) {