From: havoc Date: Wed, 21 Nov 2007 00:43:02 +0000 (+0000) Subject: fix some warnings X-Git-Tag: xonotic-v0.1.0preview~2774 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=83dcd0632d14eca27555ceddcbf39279c7a17f3f;p=xonotic%2Fdarkplaces.git fix some warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7710 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_textures.c b/gl_textures.c index a768e193..f26b44ad 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -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 d72589d1..2546ff3b 100644 --- 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 d17015fa..c865f9a9 100644 --- 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;