]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 a768e193f56bf7e509753db776152104634c968e..f26b44ade3bd90ff29d83817ae6cf905d806c3e5 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 d72589d1da946794cd7f9d1e6eae691592f8520b..2546ff3b83fffa9ff4808e1a96fb71c417b67838 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 d17015fa65b9aa32e9fb18e1eb424ea4bd03c979..c865f9a9835f51b0a2766fc67af9ed22914116f4 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;