mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Fix static code analysis warnings
This commit is contained in:
parent
cf1eb2e989
commit
f83f0b2d44
@ -22,6 +22,7 @@
|
||||
#include <string>
|
||||
#include <stdint.h>
|
||||
#include <algorithm>
|
||||
#include <string/stdstring.h>
|
||||
|
||||
#include "glslang_util.h"
|
||||
#include "slang_reflection.h"
|
||||
|
@ -418,14 +418,19 @@ static int16_t htons_for_morons(int16_t value)
|
||||
|
||||
static bool netplay_lan_ad_client(void)
|
||||
{
|
||||
unsigned i;
|
||||
fd_set fds;
|
||||
socklen_t addr_size;
|
||||
struct sockaddr their_addr;
|
||||
struct timeval tmp_tv = {0};
|
||||
struct timeval tmp_tv = {0};
|
||||
|
||||
if (lan_ad_client_fd < 0)
|
||||
return false;
|
||||
|
||||
their_addr.sa_family = 0;
|
||||
for (i = 0; i < 14; i++)
|
||||
their_addr.sa_data[i] = 0;
|
||||
|
||||
/* Check for any ad queries */
|
||||
for (;;)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user