]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - net_udp.c
Couple of 1 liner compile fixes. Missing header and missing cast.
[xonotic/darkplaces.git] / net_udp.c
index d98ed0ff3f914bc7fc4c4a8dea80516b739e694a..f21c3ebd73b6f8f530e9f6b6400cd19c7710d4c3 100644 (file)
--- a/net_udp.c
+++ b/net_udp.c
@@ -240,7 +240,7 @@ int UDP_CheckNewConnections (void)
                Sys_Error ("UDP: ioctlsocket (FIONREAD) failed\n");
        if (available)
                return net_acceptsocket;
-       recvfrom (net_acceptsocket, buff, 0, 0, &from, &fromlen);
+       recvfrom (net_acceptsocket, buff, 0, 0, (struct sockaddr *) &from, &fromlen);
        return -1;
 }