RE: [Patch] memparse should return long long

Dunlap, Randy (randy.dunlap@intel.com)
Mon, 15 Jan 2001 08:50:04 -0800


Why not (?):

> diff -uNr 2.4.0-ac/lib/cmdline.c 2.4.0-ac-memparse/lib/cmdline.c
> --- 2.4.0-ac/lib/cmdline.c Mon Aug 28 11:42:45 2000
> +++ 2.4.0-ac-memparse/lib/cmdline.c Mon Jan 15 09:06:14 2001
> @@ -93,9 +93,9 @@
> * megabyte, or one gigabyte, respectively.
> */
>
> -unsigned long memparse (char *ptr, char **retptr)
> +unsigned long long memparse (char *ptr, char **retptr)
> {
> - unsigned long ret = simple_strtoul (ptr, retptr, 0);
> + unsigned long long ret = simple_strtoul (ptr, retptr, 0);
! + unsigned long long ret = simple_strtoull (ptr, retptr, 0);

~Randy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/