]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - net_udp.c
fix for gcc 3.0 warnings on MSG_ReadByte in function parameters
[xonotic/darkplaces.git] / net_udp.c
index d98ed0ff3f914bc7fc4c4a8dea80516b739e694a..ed5d066e0978e803b9fdba7c8087b3a40fe4d317 100644 (file)
--- a/net_udp.c
+++ b/net_udp.c
@@ -40,8 +40,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 extern int gethostname (char *, int);
 extern int close (int);
 
-extern cvar_t hostname;
-
 static int net_acceptsocket = -1;              // socket for fielding new connections
 static int net_controlsocket;
 static int net_broadcastsocket = 0;
@@ -240,7 +238,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;
 }