NET: fix type mismatch for sa_len

setsockopt() and recvfrom() accept socklen_t and not an unsigned int.
See also PR #493
This commit is contained in:
Carlo Bramini 2025-10-01 21:30:57 +02:00 committed by Dethrace Engineering Department
parent 5787ec29b0
commit f03832e8c8
1 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ int ReceiveHostResponses(void) {
int already_registered;
char addr_string[32];
unsigned int sa_len;
socklen_t sa_len;
int error;
sa_len = sizeof(gRemote_addr);
@ -519,7 +519,7 @@ tNet_message* PDNetGetNextMessage(tNet_game_details* pDetails, void** pSender_ad
int msg_type;
char addr_str[32];
unsigned int sa_len;
socklen_t sa_len;
int res;
tNet_message* msg;