Re: PATCH: Fix warning on 64bit boxes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 17 Jan 2006 17:56:05 +0000, Alan Cox <[email protected]> wrote:

> We cast an int to a void * which not unreasonably makes gcc suspicious.
> We don't actually care what type "type" is so use unsigned long so it
> matches pointer length on all platforms.
> 
> Signed-off-by: Alan Cox <[email protected]>

>  static int usu_probe(struct usb_interface *intf,
>  			 const struct usb_device_id *id)
>  {
> -	int type;
> +	unsigned long type;

Looks good to me.

Acked-by: Pete Zaitcev <[email protected]>

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux