mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Const mismatch fix in net_udp6.c, plus whitespace in net_udp.c
This commit is contained in:
parent
9c9f79d05c
commit
1571f0993f
2 changed files with 2 additions and 3 deletions
|
@ -113,7 +113,6 @@ byte net_message_buffer[MAX_UDP_PACKET];
|
|||
#endif
|
||||
|
||||
|
||||
|
||||
static void
|
||||
NetadrToSockadr (netadr_t *a, struct sockaddr_in *s)
|
||||
{
|
||||
|
@ -290,7 +289,7 @@ NET_GetPacket (void)
|
|||
}
|
||||
|
||||
// Check for malformed packets
|
||||
if (ntohs(net_from.port)<1024) {
|
||||
if (ntohs (net_from.port) < 1024) {
|
||||
Con_Printf ("Warning: Packet from %s dropped: Bad port\n",
|
||||
NET_AdrToString (net_from));
|
||||
return false;
|
||||
|
|
|
@ -395,7 +395,7 @@ NET_GetPacket (void)
|
|||
}
|
||||
|
||||
void
|
||||
NET_SendPacket (int length, void *data, netadr_t to)
|
||||
NET_SendPacket (int length, const void *data, netadr_t to)
|
||||
{
|
||||
int ret;
|
||||
struct sockaddr_in6 addr;
|
||||
|
|
Loading…
Reference in a new issue