]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
treat FD_SIZE as int (which can be defined as unsigned on some platforms)
authorTatuya JINMEI 神明達哉 <jinmei@isc.org>
Tue, 1 Sep 2009 22:52:27 +0000 (22:52 +0000)
committerTatuya JINMEI 神明達哉 <jinmei@isc.org>
Tue, 1 Sep 2009 22:52:27 +0000 (22:52 +0000)
to silence compiler

lib/lwres/context.c

index 20b73416302432e43657b1b7b4f678211ff04c00..7e8188eaf63b217f907f1434f455e10305fe93b6 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: context.c,v 1.53 2009/09/01 05:50:17 each Exp $ */
+/* $Id: context.c,v 1.54 2009/09/01 22:52:27 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);