lkml.org 
[lkml]   [2011]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] resource cgroups: remove bogus cast
From
Date
ping?

On Mon, 2011-12-05 at 22:13 +0100, Davidlohr Bueso wrote:
> From: Davidlohr Bueso <dave@gnu.org>
>
> The memparse() function already accepts const char * as the parsing string.
>
> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
> ---
> kernel/res_counter.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/res_counter.c b/kernel/res_counter.c
> index 34683ef..6d269cc 100644
> --- a/kernel/res_counter.c
> +++ b/kernel/res_counter.c
> @@ -159,8 +159,7 @@ int res_counter_memparse_write_strategy(const char *buf,
> return 0;
> }
>
> - /* FIXME - make memparse() take const char* args */
> - *res = memparse((char *)buf, &end);
> + *res = memparse(buf, &end);
> if (*end != '\0')
> return -EINVAL;
>




\
 
 \ /
  Last update: 2011-12-07 13:17    [W:0.041 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site