mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-23 11:44:53 +00:00
int sock -> sock_t sock
This commit is contained in:
1 parent
6440c358c1
commit
bac0f75dd6
1 file changed
+3
-2
+3
-2
@@ -853,7 +853,8 @@ static void *pull_from_stdout(void *arg) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void spawn_stdio_thread(int sock, HANDLE hPipe, void *(*func)(void *)) {
|
||||
static void spawn_stdio_thread(sock_t sock, HANDLE hPipe,
|
||||
void *(*func)(void *)) {
|
||||
struct threadparam *tp = malloc(sizeof(*tp));
|
||||
if (tp != NULL) {
|
||||
tp->s = sock;
|
||||
@@ -3972,7 +3973,7 @@ void mg_set_listening_socket(struct mg_server *server, int sock) {
|
||||
if (server->listening_sock != INVALID_SOCKET) {
|
||||
closesocket(server->listening_sock);
|
||||
}
|
||||
server->listening_sock = sock;
|
||||
server->listening_sock = (sock_t) sock;
|
||||
}
|
||||
|
||||
int mg_get_listening_socket(struct mg_server *server) {
|
||||
|
||||
Reference in new issue
Block a user