From 11144f86dc74531c401f511a331c8c18de53e140 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 25 Sep 2009 01:42:09 +0000 Subject: [PATCH] silence signed/unsigned comparision warning --- lib/dns/dst_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/dst_api.c b/lib/dns/dst_api.c index 70c1fe323e..cdf8a7c09c 100644 --- a/lib/dns/dst_api.c +++ b/lib/dns/dst_api.c @@ -31,7 +31,7 @@ /* * Principal Author: Brian Wellington - * $Id: dst_api.c,v 1.32 2009/09/24 22:19:08 marka Exp $ + * $Id: dst_api.c,v 1.33 2009/09/25 01:42:09 marka Exp $ */ /*! \file */ @@ -1509,7 +1509,7 @@ addsuffix(char *filename, unsigned int len, const char *odirname, odirname, olen, ofilename, suffix); if (n < 0) return (ISC_R_FAILURE); - if (n >= len) + if ((unsigned int)n >= len) return (ISC_R_NOSPACE); return (ISC_R_SUCCESS); }