From owner-cvs-all Mon Jul 15 3:54:38 2002 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 7822937B400; Mon, 15 Jul 2002 03:54:33 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id F23B143E5E; Mon, 15 Jul 2002 03:54:32 -0700 (PDT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id C04C7AE165; Mon, 15 Jul 2002 03:54:32 -0700 (PDT) Date: Mon, 15 Jul 2002 03:54:32 -0700 From: Alfred Perlstein To: Bruce Evans Cc: Dag-Erling Smorgrav , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/tail Makefile tail.c Message-ID: <20020715105432.GJ77219@elvis.mu.org> References: <20020715095346.GI77219@elvis.mu.org> <20020715202642.V40071-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020715202642.V40071-100000@gamplex.bde.org> User-Agent: Mutt/1.3.27i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Bruce Evans [020715 03:27] wrote: > On Mon, 15 Jul 2002, Alfred Perlstein wrote: > > > Er, both size_t and off_t are pretty much the same one i386 and alpha... > > Actually, the are quite different. BUHHH... size_t is 64 bits on alpha (versus 32 on i386), isn't it? > > Also, casting enomem of line 257 of reverse.c doesn't fix this warning > > which makes no sense... > > > > Index: reverse.c > > - warnx("warning: %qd bytes discarded", enomem); > > + warnx("warning: %qd bytes discarded", (quad_t)enomem); > > This makes sense. %qd is just an alias for %lld, so it unsuitable for > printing anything except long longs. Neither off_t nor quad_t is long > long on alphas. That's just obnoxious. :) Any chance you can suggest how to clean this up? The fact that we can't compile tail(1) without warnings bugs me. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message