mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 06:40:39 +00:00
Merge pull request #4138 from GregorR/netplay-port-unsigned-short
Be explicit about types
This commit is contained in:
commit
d71df5c06f
@ -119,7 +119,7 @@ bool netplay_discovery_driver_ctl(enum rarch_netplay_discovery_ctl_state state,
|
||||
int canBroadcast = 1;
|
||||
|
||||
/* Get the broadcast address (IPv4 only for now) */
|
||||
snprintf(port_str, 6, "%hu", RARCH_DEFAULT_PORT);
|
||||
snprintf(port_str, 6, "%hu", (unsigned short) RARCH_DEFAULT_PORT);
|
||||
if (getaddrinfo_retro("255.255.255.255", port_str, &hints, &addr) < 0)
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user