From owner-cvs-all@FreeBSD.ORG Fri Jun 4 02:30:56 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A6BA16A4CE; Fri, 4 Jun 2004 02:30:56 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77E8043D39; Fri, 4 Jun 2004 02:30:56 -0700 (PDT) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i549UpA0002135; Fri, 4 Jun 2004 02:30:51 -0700 (PDT) (envelope-from das@repoman.freebsd.org) Received: (from das@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i549UpaK002134; Fri, 4 Jun 2004 02:30:51 -0700 (PDT) (envelope-from das) Message-Id: <200406040930.i549UpaK002134@repoman.freebsd.org> From: David Schultz Date: Fri, 4 Jun 2004 02:30:51 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/df df.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 04 Jun 2004 09:30:56 -0000 das 2004/06/04 02:30:51 PDT FreeBSD src repository Modified files: bin/df df.c Log: Convert fsbtoblk() from a macro to a function. The redundant instances of 64-bit arithmetic were costing 775 bytes, and the inlining offered no benefit. Moreover, ambiguity as to the argument types led to the introduction of a bug (see rev 1.56). Also, remove some casts that are now clearly redundant. Inspired by: 67467 Revision Changes Path 1.62 +13 -8 src/bin/df/df.c