From owner-freebsd-current Sat Dec 28 21:59:38 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E390837B409; Sat, 28 Dec 2002 21:59:35 -0800 (PST) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B3A643EC5; Sat, 28 Dec 2002 21:59:35 -0800 (PST) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 3C5F99C10; Sun, 29 Dec 2002 00:49:07 -0500 (EST) Date: Sun, 29 Dec 2002 00:49:07 -0500 From: Mike Barcroft To: Matthew Dillon Cc: current@freebsd.org, ia64@freebsd.org Subject: Re: ia64 tinderbox failure Message-ID: <20021229004907.C98334@espresso.q9media.com> References: <200212290527.gBT5R0qr085354@mckinley.corp.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200212290527.gBT5R0qr085354@mckinley.corp.yahoo.com>; from peter@freebsd.org on Sat, Dec 28, 2002 at 09:27:00PM -0800 Organization: The FreeBSD Project Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Peter Wemm writes: > ===> sbin/swapon > cc1: warnings being treated as errors > /home/tinderbox/ia64/src/sbin/swapon/swapon.c: In function `swaplist': > /home/tinderbox/ia64/src/sbin/swapon/swapon.c:246: warning: field width is not type int (arg 3) > /home/tinderbox/ia64/src/sbin/swapon/swapon.c:246: warning: field width is not type int (arg 5) > /home/tinderbox/ia64/src/sbin/swapon/swapon.c:265: warning: field width is not type int (arg 3) > /home/tinderbox/ia64/src/sbin/swapon/swapon.c:265: warning: field width is not type int (arg 5) > /home/tinderbox/ia64/src/sbin/swapon/swapon.c:274: warning: field width is not type int (arg 2) > /home/tinderbox/ia64/src/sbin/swapon/swapon.c:274: warning: field width is not type int (arg 4) > *** Error code 1 Proposed fix: %%% Index: swapon.c =================================================================== RCS file: /work/repo/src/sbin/swapon/swapon.c,v retrieving revision 1.14 diff -u -r1.14 swapon.c --- swapon.c 28 Dec 2002 23:39:47 -0000 1.14 +++ swapon.c 29 Dec 2002 05:53:17 -0000 @@ -53,6 +53,7 @@ #include #include #include +#include #include #include #include @@ -210,8 +211,8 @@ { size_t mibsize, size; struct xswdev xsw; - int mib[16], n, pagesize; - size_t hlen; + int hlen, mib[16], n, pagesize; + size_t hsize; long blocksize; long long total = 0; long long used = 0; @@ -229,7 +230,8 @@ hlen = 10; break; default: - getbsize(&hlen, &blocksize); + getbsize(&hsize, &blocksize); + hlen = MIN(INT_MAX, hsize); break; } %%% BTW, the tabbing in this area of the source file is messed up. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message