mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
fix some new compiler warnings
This commit is contained in:
parent
00d4fdab39
commit
e5cb9fc650
@ -3320,7 +3320,10 @@ boolean deh_GetData(char *s, char *k, long *l, char **strval, FILE *fpout)
|
|||||||
if (*t == '=') break;
|
if (*t == '=') break;
|
||||||
buffer[i] = *t; // copy it
|
buffer[i] = *t; // copy it
|
||||||
}
|
}
|
||||||
buffer[--i] = '\0'; // terminate the key before the '='
|
if (i > 0)
|
||||||
|
{
|
||||||
|
buffer[--i] = '\0'; // terminate the key before the '='
|
||||||
|
}
|
||||||
if (!*t) // end of string with no equal sign
|
if (!*t) // end of string with no equal sign
|
||||||
{
|
{
|
||||||
okrc = false;
|
okrc = false;
|
||||||
|
@ -324,7 +324,7 @@ static void NET_Query_ParseResponse(net_addr_t *addr, net_packet_t *packet,
|
|||||||
target = GetTargetForAddr(addr, true);
|
target = GetTargetForAddr(addr, true);
|
||||||
broadcast_target = GetTargetForAddr(NULL, false);
|
broadcast_target = GetTargetForAddr(NULL, false);
|
||||||
target->state = QUERY_TARGET_QUERIED;
|
target->state = QUERY_TARGET_QUERIED;
|
||||||
target->query_time = broadcast_target->query_time;
|
target->query_time = broadcast_target ? broadcast_target->query_time : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target->state != QUERY_TARGET_RESPONDED)
|
if (target->state != QUERY_TARGET_RESPONDED)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user