From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Subject: Re: [PATCH 5/6] ipset: Support comments in the userspace library. Date: Thu, 19 Sep 2013 16:35:47 +0200 Message-ID: <2453382.7aUm7cClMH@gentoovm> References: <1379423605-22777-1-git-send-email-oliver@8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa> <1379423605-22777-6-git-send-email-oliver@8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: netfilter-devel@vger.kernel.org To: Jozsef Kadlecsik Return-path: Received: from mail.uptheinter.net ([77.74.196.236]:41106 "EHLO mail.uptheinter.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562Ab3ISOgM (ORCPT ); Thu, 19 Sep 2013 10:36:12 -0400 In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Wednesday 18 September 2013 20:43:30 Jozsef Kadlecsik wrote: > On Tue, 17 Sep 2013, Oliver wrote: > > diff --git a/lib/types.c b/lib/types.c > > index adaba83..b95114f 100644 > > --- a/lib/types.c > > +++ b/lib/types.c > > @@ -607,7 +607,7 @@ ipset_load_types(void) > > > > len = snprintf(path, sizeof(path), "%.*s", > > > > (unsigned int)(next - dir), dir); > > > > - if (len >= sizeof(path) || len < 0) > > + if (len >= (int)sizeof(path) || len < (int)0) > > > > continue; > > > > n = scandir(path, &list, NULL, alphasort); > > > > @@ -620,7 +620,7 @@ ipset_load_types(void) > > > > len = snprintf(file, sizeof(file), "%s/%s", > > > > path, list[n]->d_name); > > > > - if (len >= sizeof(file) || len < 0) > > + if (len >= (int)sizeof(file) || len < (int)0) > > > > goto nextf; > > > > if (dlopen(file, RTLD_NOW) == NULL) > > I don't see why these two modifications are required. Just to prevent a build failure in debug mode because warnings are treated as errors and comparing an int to a size_t obviously makes it unhappy. All other other changes you specified have been made. :) Thanks, Oliver.