tUnused variables (when under Win32) removed. - vaccinewars - be a doctor and t… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 4f8fceb83f388fc9c6cfcb3b5d08345db70f16ca | |
parent b577bd956b2146327a27713994a56b8d3be92141 | |
Author: Ben Webb <[email protected]> | |
Date: Sat, 2 Mar 2002 18:53:39 +0000 | |
Unused variables (when under Win32) removed. | |
Diffstat: | |
M src/serverside.c | 8 ++++---- | |
1 file changed, 4 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/src/serverside.c b/src/serverside.c | |
t@@ -32,6 +32,7 @@ | |
#ifdef CYGWIN | |
#include <windows.h> /* For datatypes such as BOOL */ | |
#include <winsock.h> /* For network functions */ | |
+#include <process.h> /* For getpid */ | |
#else | |
#include <sys/socket.h> /* For struct sockaddr etc. */ | |
#include <netinet/in.h> /* For struct sockaddr_in etc. */ | |
t@@ -762,8 +763,6 @@ static gboolean StartServer(void) | |
#ifndef CYGWIN | |
struct sigaction sact; | |
-#else | |
- SERVICE_STATUS status; | |
#endif | |
if (!CheckHighScoreFileConfig()) | |
t@@ -1070,10 +1069,9 @@ static int SetupLocalSocket(void) | |
void ServerLoop() | |
{ | |
Player *tmp; | |
- GSList *list, *nextlist, *localconn = NULL; | |
+ GSList *list, *nextlist; | |
fd_set readfs, writefs, errorfs; | |
int topsock; | |
- GPrintFunc oldprint; | |
struct timeval timeout; | |
int MinTimeout; | |
GString *LineBuf; | |
t@@ -1082,6 +1080,8 @@ void ServerLoop() | |
#ifndef CYGWIN | |
int localsock; | |
+ GPrintFunc oldprint; | |
+ GSList *localconn = NULL; | |
#endif | |
if (!StartServer()) |