From owner-cvs-all@FreeBSD.ORG Mon Feb 18 20:01:33 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFA3316A41B; Mon, 18 Feb 2008 20:01:33 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id CE59E13C467; Mon, 18 Feb 2008 20:01:33 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1IK1XqZ076019; Mon, 18 Feb 2008 20:01:33 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1IK1XEW076018; Mon, 18 Feb 2008 20:01:33 GMT (envelope-from marcel) Message-Id: <200802182001.m1IK1XEW076018@repoman.freebsd.org> From: Marcel Moolenaar Date: Mon, 18 Feb 2008 20:01:33 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/bin/sh mksyntax.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2008 20:01:34 -0000 marcel 2008-02-18 20:01:33 UTC FreeBSD src repository Modified files: bin/sh mksyntax.c Log: Fix "warning: comparison is always false due to limited range of data type" on platforms with unsigned chars. The comparison in question is there to determine whether chars are unsigned or not and is based on comparing a char, initialized to -1, for less than 0. Change the comparison to check for geater than 0 instead... Revision Changes Path 1.25 +1 -4 src/bin/sh/mksyntax.c