fix some warnings
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 21 Nov 2007 00:43:02 +0000 (00:43 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 21 Nov 2007 00:43:02 +0000 (00:43 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7710 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c
lhnet.c
lhnet.h

index a768e19..f26b44a 100644 (file)
@@ -203,6 +203,7 @@ static textypeinfo_t *R_GetTexTypeInfo(int textype, int flags)
                        }
                }
        }
+       return NULL; // this line only to hush compiler warnings
 }
 
 static void R_UploadTexture(gltexture_t *t);
diff --git a/lhnet.c b/lhnet.c
index d72589d..2546ff3 100644 (file)
--- a/lhnet.c
+++ b/lhnet.c
@@ -516,7 +516,7 @@ void LHNET_SleepUntilPacket_Microseconds(int microseconds)
                {
                        if (lastfd < s->inetsocket)
                                lastfd = s->inetsocket;
-                       FD_SET(s->inetsocket, &fdreadset);
+                       FD_SET((unsigned int)s->inetsocket, &fdreadset);
                }
        }
        tv.tv_sec = microseconds / 1000000;
diff --git a/lhnet.h b/lhnet.h
index d17015f..c865f9a 100644 (file)
--- a/lhnet.h
+++ b/lhnet.h
@@ -67,7 +67,7 @@ int LHNETADDRESS_Compare(const lhnetaddress_t *address1, const lhnetaddress_t *a
 typedef struct lhnetsocket_s
 {
        lhnetaddress_t address;
-       unsigned int inetsocket;
+       int inetsocket;
        struct lhnetsocket_s *next, *prev;
 }
 lhnetsocket_t;