From e1488ac684118d85bbc7dd476ca83ca7b0241cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tatuya=20JINMEI=20=E7=A5=9E=E6=98=8E=E9=81=94=E5=93=89?= Date: Tue, 1 Sep 2009 22:55:05 +0000 Subject: [PATCH] treat FD_SIZE as int (which can be defined as unsigned on some platforms) to silence compiler. (checked by Mark) --- lib/lwres/context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lwres/context.c b/lib/lwres/context.c index 71bc885380..8e0d731bbc 100644 --- a/lib/lwres/context.c +++ b/lib/lwres/context.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: context.c,v 1.50.332.3 2009/09/01 06:03:11 each Exp $ */ +/* $Id: context.c,v 1.50.332.4 2009/09/01 22:55:05 jinmei Exp $ */ /*! \file context.c lwres_context_create() creates a #lwres_context_t structure for use in @@ -476,7 +476,7 @@ lwres_context_sendrecv(lwres_context_t *ctx, * If this is not checked, select() can overflow, * causing corruption elsewhere. */ - if (ctx->sock >= FD_SETSIZE) { + if (ctx->sock >= (int)FD_SETSIZE) { close(ctx->sock); ctx->sock = -1; return (LWRES_R_IOERROR);