about summary refs log tree commit diff
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-03-31 19:07:21 +0200
committeroy <Tom_Adams@web.de>2011-03-31 19:07:21 +0200
commit98eaaf2e23a6b08c48c0dfdda6378df6e19eaed6 (patch)
treefa79a47cd2780c0d21b803dfea5e8434b355de8a
parentcd9176331d1eac1eeaee8d4bdadf06b2a6d8c6e8 (diff)
downloadzcatch-98eaaf2e23a6b08c48c0dfdda6378df6e19eaed6.tar.gz
zcatch-98eaaf2e23a6b08c48c0dfdda6378df6e19eaed6.zip
fixed 2 compiler warnings
-rw-r--r--src/engine/shared/masterserver.cpp1
-rw-r--r--src/versionsrv/versionsrv.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/engine/shared/masterserver.cpp b/src/engine/shared/masterserver.cpp
index 3037d152..8890b327 100644
--- a/src/engine/shared/masterserver.cpp
+++ b/src/engine/shared/masterserver.cpp
@@ -146,7 +146,6 @@ public:
 		while(1)
 		{
 			CMasterInfo Info = {{0}};
-			int aIp[4];
 			const char *pLine = LineReader.Get();
 			if(!pLine)
 				break;
diff --git a/src/versionsrv/versionsrv.h b/src/versionsrv/versionsrv.h
index 03ca2f21..66e46e0c 100644
--- a/src/versionsrv/versionsrv.h
+++ b/src/versionsrv/versionsrv.h
@@ -24,7 +24,7 @@ static CMapVersion s_aMapVersionList[] = {
 	{"dm8", {0x92, 0x23, 0x91, 0x82}, {0x00, 0x00, 0x3a, 0x33}},
 	{"dm9", {0x48, 0xca, 0xfd, 0x11}, {0x00, 0x00, 0x18, 0x94}},
 };
-static int s_NumMapVersionItems = sizeof(s_aMapVersionList)/sizeof(CMapVersion);
+static const int s_NumMapVersionItems = sizeof(s_aMapVersionList)/sizeof(CMapVersion);
 
 static const unsigned char VERSION_DATA[] = {0x00, 0, 6, 0};