fix one of who knows how many issues with gcc 2.96 (at least I don't have to

worry about not being able to reproduce them on a non-intel box:)
This commit is contained in:
Bill Currie 2001-11-17 04:30:51 +00:00
parent fade981a40
commit 1a99fe74ab

View file

@ -115,7 +115,7 @@ NetadrToSockadr (netadr_t *a, struct sockaddr_in *s)
memset (s, 0, sizeof (*s));
s->sin_family = AF_INET;
*(int *) &s->sin_addr = *(int *) &a->ip;
memcpy (&s->sin_addr, &a->ip, 4);
s->sin_port = a->port;
}
@ -282,7 +282,7 @@ NET_GetPacket (void)
// Check for malformed packets
if (is_server && ntohs(net_from.port)<1024) {
Con_Printf ("Warning: Packet from %s dropped: Bad port\n",
NET_AdrToString (net_from));
NET_AdrToString (net_from));
return false;
}