lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <84144f020909160543s38daa8ebs989b9da09802d681@mail.gmail.com>
Date:	Wed, 16 Sep 2009 15:43:55 +0300
From:	Pekka Enberg <penberg@...helsinki.fi>
To:	Andy Shevchenko <andy.shevchenko@...il.com>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Andy Shevchenko <ext-andriy.shevchenko@...ia.com>
Subject: Re: [PATCH v2] media: video: pwc: Use kernel's simple_strtol()

On Wed, Sep 16, 2009 at 3:26 PM, Andy Shevchenko
<andy.shevchenko@...il.com> wrote:
> @@ -2078,13 +2066,13 @@ static int __init usb_pwc_init(void)
>                                }
>                                else {
>                                        /* No type or serial number specified, just a number. */
> -                                       device_hint[i].device_node = pwc_atoi(s);
> +                                       device_hint[i].device_node = (int)simple_strtol(s, NULL, 10);

What's with all the casting to int?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ