From owner-svn-src-all@FreeBSD.ORG Sat Oct 26 17:43:19 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4A656488; Sat, 26 Oct 2013 17:43:19 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 36A4E29D8; Sat, 26 Oct 2013 17:43:19 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9QHhJ45065075; Sat, 26 Oct 2013 17:43:19 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9QHhJeu065074; Sat, 26 Oct 2013 17:43:19 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201310261743.r9QHhJeu065074@svn.freebsd.org> From: Gleb Smirnoff Date: Sat, 26 Oct 2013 17:43:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r257174 - head/sys/netgraph X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Oct 2013 17:43:19 -0000 Author: glebius Date: Sat Oct 26 17:43:18 2013 New Revision: 257174 URL: http://svnweb.freebsd.org/changeset/base/257174 Log: Remove unsigned < 0 comparison. Modified: head/sys/netgraph/ng_one2many.c Modified: head/sys/netgraph/ng_one2many.c ============================================================================== --- head/sys/netgraph/ng_one2many.c Sat Oct 26 17:40:38 2013 (r257173) +++ head/sys/netgraph/ng_one2many.c Sat Oct 26 17:43:18 2013 (r257174) @@ -220,7 +220,7 @@ ng_one2many_newhook(node_p node, hook_p if (!isdigit(*cp) || (cp[0] == '0' && cp[1] != '\0')) return (EINVAL); i = strtoul(cp, &eptr, 10); - if (*eptr != '\0' || i < 0 || i >= NG_ONE2MANY_MAX_LINKS) + if (*eptr != '\0' || i >= NG_ONE2MANY_MAX_LINKS) return (EINVAL); linkNum = (int)i; link = &priv->many[linkNum];