1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-26 06:40:39 +00:00

Merge pull request from GregorR/netplay-port-unsigned-short

Be explicit about types
This commit is contained in:
Twinaphex 2016-12-03 05:11:02 +01:00 committed by GitHub
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;