Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: Richard Henderson <rth@redhat.com>,
	axp-list mailing list <axp-list@redhat.com>
Subject: Re: [PATCH] [RESENT] compilation warnings 3/6
Date: Fri, 8 Nov 2002 20:50:12 -0800	[thread overview]
Message-ID: <20021108205012.C3169@twiddle.net> (raw)
In-Reply-To: <20021109010502.F18411@Marvin.DL8BCU.ampr.org>; from dl8bcu@dl8bcu.de on Sat, Nov 09, 2002 at 01:05:03AM +0000

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~




  parent reply	other threads:[~2002-11-09  5:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-09  1:00 [PATCH] [RESENT] compilation warnings 1/6 Thorsten Kranzkowski
2002-11-09  1:03 ` [PATCH] [RESENT] compilation warnings 2/6 Thorsten Kranzkowski
2002-11-09  1:05   ` [PATCH] [RESENT] compilation warnings 3/6 Thorsten Kranzkowski
2002-11-09  1:07     ` [PATCH] [RESENT] compilation warnings 4/6 Thorsten Kranzkowski
2002-11-09  1:08       ` [PATCH] [RESENT] compilation warnings 5/6 Thorsten Kranzkowski
2002-11-09  1:13         ` [PATCH] [RESENT] compilation warnings 6/6 Thorsten Kranzkowski
2002-11-09  1:47       ` [PATCH] [RESENT] compilation warnings 4/6 Michal Jaegermann
2002-11-09  5:51       ` Richard Henderson
2002-11-09  4:50     ` Richard Henderson [this message]
2002-11-09 19:14       ` [PATCH] [RESENT] compilation warnings 3/6 Peter Rival
2002-11-09 21:29         ` Michal Jaegermann
2002-11-14  6:44         ` Richard Henderson
2002-11-09  4:32 ` [PATCH] [RESENT] compilation warnings 1/6 Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox