Const mismatch fix in net_udp6.c, plus whitespace in net_udp.c

This commit is contained in:
Ragnvald Maartmann-Moe IV 2007-09-09 14:47:15 +00:00 committed by Jeff Teunissen
parent 9c9f79d05c
commit 1571f0993f
2 changed files with 2 additions and 3 deletions

View file

@ -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;

View file

@ -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;