From owner-svn-src-all@FreeBSD.ORG Mon Oct 4 10:48:48 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27272106566B; Mon, 4 Oct 2010 10:48:48 +0000 (UTC) (envelope-from phk@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 16E318FC1D; Mon, 4 Oct 2010 10:48:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o94Amlam010440; Mon, 4 Oct 2010 10:48:47 GMT (envelope-from phk@svn.freebsd.org) Received: (from phk@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o94Amlao010438; Mon, 4 Oct 2010 10:48:47 GMT (envelope-from phk@svn.freebsd.org) Message-Id: <201010041048.o94Amlao010438@svn.freebsd.org> From: Poul-Henning Kamp Date: Mon, 4 Oct 2010 10:48:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r213401 - head/sys/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 04 Oct 2010 10:48:48 -0000 Author: phk Date: Mon Oct 4 10:48:47 2010 New Revision: 213401 URL: http://svn.freebsd.org/changeset/base/213401 Log: Certain static code analysis tools (FlexeLint being one) are very suspicious about 'l' and '1' being confused in numeric constants. The fear being that some old fart programmer might still think that he is using a Remmington Noiseless as input terminal device. An easy way to placate this fear is to use capital 'L' or to put the 'u' in unsigned constants in front of the 'l'. Modified: head/sys/sys/time.h Modified: head/sys/sys/time.h ============================================================================== --- head/sys/sys/time.h Mon Oct 4 07:00:47 2010 (r213400) +++ head/sys/sys/time.h Mon Oct 4 10:48:47 2010 (r213401) @@ -95,11 +95,11 @@ bintime_mul(struct bintime *bt, u_int x) { uint64_t p1, p2; - p1 = (bt->frac & 0xffffffffllu) * x; + p1 = (bt->frac & 0xffffffffull) * x; p2 = (bt->frac >> 32) * x + (p1 >> 32); bt->sec *= x; bt->sec += (p2 >> 32); - bt->frac = (p2 << 32) | (p1 & 0xffffffffllu); + bt->frac = (p2 << 32) | (p1 & 0xffffffffull); } #define bintime_clear(a) ((a)->sec = (a)->frac = 0)