Add warning about globals

This commit is contained in:
twinaphex 2019-12-30 06:50:25 +01:00
parent 8b5db9fdaf
commit ad397671a7

View File

@ -71,16 +71,16 @@ struct ad_packet
char subsystem_name[NETPLAY_HOST_STR_LEN]; char subsystem_name[NETPLAY_HOST_STR_LEN];
}; };
/* TODO/FIXME - globals - remove to make code thread-safe */
int netplay_room_count = 0;
struct netplay_room *netplay_room_list = NULL;
static bool netplay_lan_ad_client(void); static bool netplay_lan_ad_client(void);
/* LAN discovery sockets */ /* LAN discovery sockets */
static int lan_ad_server_fd = -1; static int lan_ad_server_fd = -1;
static int lan_ad_client_fd = -1; static int lan_ad_client_fd = -1;
int netplay_room_count = 0;
struct netplay_room *netplay_room_list = NULL;
/* Packet buffer for advertisement and responses */ /* Packet buffer for advertisement and responses */
static struct ad_packet ad_packet_buffer; static struct ad_packet ad_packet_buffer;