commit 418ed15ded78abab61c511e20dc3b4b3d3057945 parent 28b99a70db6873ba3bdc96382b173739f09bf862 Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Jul 17 00:16:54 +0300 Oops Diffstat:
http.cc | | | 2 | +- |
diff --git a/http.cc b/http.cc @@ -30,7 +30,7 @@ bool dns_first( const char * host, struct sockaddr_storage * address ) { } GetResult http_get( const struct sockaddr_storage & address, const char * host, const char * path, std::string * body, HttpProgressCallback progress_cb, void * cb_data ) { - SOCKET sock = socket( address.ss_family, SOCK_STREAM, 0 ); + int sock = socket( address.ss_family, SOCK_STREAM, 0 ); if( sock == -1 ) { return GET_ERROR_SOCKET; }