portable socket type should be SOCKET

This commit is contained in:
KIU Shueng Chuan committed 2013-02-24 23:41:32 +08:00
1 parent a2239c2b4b
commit d8536b011c
1 file changed
+1 -1
+1 -1
View File
@@ -4693,7 +4693,7 @@ struct mg_connection *mg_connect(const char *host, int port, int use_ssl,
struct mg_connection *conn = NULL;
struct sockaddr_in sin;
struct hostent *he;
int sock;
SOCKET sock;
if (host == NULL) {
snprintf(ebuf, ebuf_len, "%s", "NULL host");