فهرست منبع

portable socket type should be SOCKET

KIU Shueng Chuan 12 سال پیش
والد
کامیت
d8536b011c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      mongoose.c

+ 1 - 1
mongoose.c

@@ -4693,7 +4693,7 @@ struct mg_connection *mg_connect(const char *host, int port, int use_ssl,
   struct mg_connection *conn = NULL;
   struct mg_connection *conn = NULL;
   struct sockaddr_in sin;
   struct sockaddr_in sin;
   struct hostent *he;
   struct hostent *he;
-  int sock;
+  SOCKET sock;
 
 
   if (host == NULL) {
   if (host == NULL) {
     snprintf(ebuf, ebuf_len, "%s", "NULL host");
     snprintf(ebuf, ebuf_len, "%s", "NULL host");