Fix static code analysis warnings

This commit is contained in:
twinaphex 2020-06-29 20:27:34 +02:00
parent cf1eb2e989
commit f83f0b2d44
2 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,7 @@
#include <string>
#include <stdint.h>
#include <algorithm>
#include <string/stdstring.h>
#include "glslang_util.h"
#include "slang_reflection.h"

View File

@ -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 (;;)
{