From owner-svn-src-head@FreeBSD.ORG Mon Nov 5 19:00:25 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BDADA492; Mon, 5 Nov 2012 19:00:25 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 8A3778FC08; Mon, 5 Nov 2012 19:00:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qA5J0PjZ061501; Mon, 5 Nov 2012 19:00:25 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qA5J0PXP061499; Mon, 5 Nov 2012 19:00:25 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201211051900.qA5J0PXP061499@svn.freebsd.org> From: Dimitry Andric Date: Mon, 5 Nov 2012 19:00:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242623 - head/sys/contrib/ngatm/netnatm/msg X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2012 19:00:25 -0000 Author: dim Date: Mon Nov 5 19:00:25 2012 New Revision: 242623 URL: http://svnweb.freebsd.org/changeset/base/242623 Log: In sys/contrib/ngatm/netnatm/msg/uni_ie.c, fix a few warnings from newer versions of clang 3.2, about comparing enum uni_cause values against integer constants which fall outside the enum range. No functional change. MFC after: 3 days Modified: head/sys/contrib/ngatm/netnatm/msg/uni_ie.c Modified: head/sys/contrib/ngatm/netnatm/msg/uni_ie.c ============================================================================== --- head/sys/contrib/ngatm/netnatm/msg/uni_ie.c Mon Nov 5 18:49:21 2012 (r242622) +++ head/sys/contrib/ngatm/netnatm/msg/uni_ie.c Mon Nov 5 19:00:25 2012 (r242623) @@ -869,7 +869,7 @@ UNI_DECLARE_CAUSE_VALUES enum uni_diag uni_diag(enum uni_cause cause, enum uni_coding code) { - if (cause >= 128) + if ((int)cause >= 128) return (UNI_DIAG_NONE); if (code == UNI_CODING_NET) @@ -925,9 +925,9 @@ print_cause(struct unicx *cx, struct uni if (uni_print_iehdr("cause", &ie->h, cx)) return; - if (ie->cause < 128 && tab1[ie->cause].str) + if ((int)ie->cause < 128 && tab1[ie->cause].str) strcpy(buf, tab1[ie->cause].str); - else if (ie->cause < 128 && tab2 != NULL && tab2[ie->cause].str != NULL) + else if ((int)ie->cause < 128 && tab2 != NULL && tab2[ie->cause].str != NULL) strcpy(buf, tab2[ie->cause].str); else { sprintf(buf, "UNKNOWN-%u", ie->cause); @@ -1059,7 +1059,7 @@ check_cause(struct uni_ie_cause *ie, str const struct causetab *ptr; - if (ie->cause >= 128) + if ((int)ie->cause >= 128) return (-1); switch (ie->loc) {