lkml.org 
[lkml]   [2001]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [Patch] memparse should return long long
Date
Hi Randy,

On Mon, 15 Jan 2001, Randy Dunlap wrote:
> Why not (?):

Because I did not need it (always used #G or #M) and did not know the
function. But it's apparently correct to use simple_strtoull.

>> 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

Greetings
Christoph

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.073 / U:4.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site