From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 332BF3EBA0 for ; Sat, 9 Nov 2002 00:20:28 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gA95KS404323 for axp-list@listman.redhat.com; Sat, 9 Nov 2002 00:20:28 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id gA95KPD04282; Sat, 9 Nov 2002 00:20:25 -0500 Received: from are.twiddle.net (are.twiddle.net [64.81.246.98]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gA94RNw01349; Fri, 8 Nov 2002 23:27:24 -0500 Received: (from rth@localhost) by are.twiddle.net (8.11.6/8.11.6) id gA94oCC03376; Fri, 8 Nov 2002 20:50:12 -0800 Date: Fri, 8 Nov 2002 20:50:12 -0800 From: Richard Henderson To: Richard Henderson , axp-list mailing list Subject: Re: [PATCH] [RESENT] compilation warnings 3/6 Message-ID: <20021108205012.C3169@twiddle.net> Mail-Followup-To: Richard Henderson , axp-list mailing list References: <20021109010039.D18411@Marvin.DL8BCU.ampr.org> <20021109010312.E18411@Marvin.DL8BCU.ampr.org> <20021109010502.F18411@Marvin.DL8BCU.ampr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20021109010502.F18411@Marvin.DL8BCU.ampr.org>; from dl8bcu@dl8bcu.de on Sat, Nov 09, 2002 at 01:05:03AM +0000 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Sat, Nov 09, 2002 at 01:05:03AM +0000, Thorsten Kranzkowski wrote: > void > -mchk_dump_mem(void *data, int length, char **annotation) > +mchk_dump_mem(void *data, unsigned int length, char **annotation) > { > unsigned long *ldata = data; > - int i; > + unsigned int i; > > for(i = 0; (i * sizeof(*ldata)) < length; i++) { Again, size_t seems to be exactly the right type. > ### i is again a loopcounter with supposedly only positive values. > ### OTOH this funktion needs more thought. In its current form > ### it may copy arbitrary amounts of memory when given a negative > ### value for namelen. 'len' should be removes altogether. > ### I suppose the 'int namelen' is architecturally defined? Can someone with access to Tru64 headers check the definition of the getdomainname syscall? I'm going to leave this hunk out for now. > ### hose->index is unsigned int but pci_controller_num is defined > ### int everywhere. who is right? Eh, "int" is I guess by fiat. This is good enough. r~