mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-23 08:33:55 +08:00
add socklen_t
This commit is contained in:
@@ -217,7 +217,7 @@ BOOL InitNetInput (INPUT* input, const char* mdev, const char* mtype)
|
||||
}
|
||||
printf ("Please start the PC side of the client process.\n");
|
||||
|
||||
temp_sock_descriptor = accept (sock_descriptor, (struct sockaddr *)&pin, &address_size);
|
||||
temp_sock_descriptor = accept (sock_descriptor, (struct sockaddr *)&pin, (socklen_t *)&address_size);
|
||||
if (temp_sock_descriptor == -1)
|
||||
{
|
||||
perror ("call to accept");
|
||||
|
||||
Reference in New Issue
Block a user