foxygit / doom Log in
commit 3c92c5807e2eacdf84932d385d5041dfb311a26c
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Sat May 9 16:11:46 2009 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Sat May 9 16:11:46 2009 +0000

    Fix compiler warnings.

    Subversion-branch: /branches/raven-branch
    Subversion-revision: 1515
---
 src/doom/d_net.c    | 3 ++-
 src/heretic/d_net.c | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/doom/d_net.c b/src/doom/d_net.c
index e43ac4b2..e30ead83 100644
--- a/src/doom/d_net.c
+++ b/src/doom/d_net.c
@@ -430,12 +430,13 @@ static boolean PlayersInGame(void)

 static int GetLowTic(void)
 {
-    int i;
     int lowtic;

 #ifdef FEATURE_MULTIPLAYER
     if (net_client_connected)
     {
+        int i;
+
         lowtic = INT_MAX;

         for (i=0; i<MAXPLAYERS; ++i)
diff --git a/src/heretic/d_net.c b/src/heretic/d_net.c
index f6121e91..9258b7d7 100644
--- a/src/heretic/d_net.c
+++ b/src/heretic/d_net.c
@@ -25,6 +25,8 @@
 // d_net.c
 // This version has the fixed ticdup code

+#include <stdlib.h>
+
 #include "doomdef.h"
 #include "doomkeys.h"