From cf3c6d5f5eacd317934705e2b10e71e93d95afba Mon Sep 17 00:00:00 2001 From: sezero Date: Sun, 1 Apr 2012 18:03:25 +0000 Subject: [PATCH] * net_dgrm.c: Fixed the types of testSocket and test2Socket from int to sys_socket_t. * updated version date stamp to 2012-04-01. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@656 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/net_dgrm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quakespasm/Quake/net_dgrm.c b/quakespasm/Quake/net_dgrm.c index 4a88c242..b573db8d 100644 --- a/quakespasm/Quake/net_dgrm.c +++ b/quakespasm/Quake/net_dgrm.c @@ -521,7 +521,7 @@ static const char *Strip_Port (const char *host) static qboolean testInProgress = false; static int testPollCount; static int testDriver; -static int testSocket; +static sys_socket_t testSocket; static void Test_Poll (void *); static PollProcedure testPollProcedure = {NULL, 0.0, Test_Poll}; @@ -630,7 +630,7 @@ static void Test_f (void) JustDoIt: testSocket = dfunc.Open_Socket(0); - if (testSocket == -1) + if (testSocket == INVALID_SOCKET) return; testInProgress = true; @@ -654,7 +654,7 @@ JustDoIt: static qboolean test2InProgress = false; static int test2Driver; -static int test2Socket; +static sys_socket_t test2Socket; static void Test2_Poll (void *); static PollProcedure test2PollProcedure = {NULL, 0.0, Test2_Poll}; @@ -764,7 +764,7 @@ static void Test2_f (void) JustDoIt: test2Socket = dfunc.Open_Socket(0); - if (test2Socket == -1) + if (test2Socket == INVALID_SOCKET) return; test2InProgress = true;