From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Emelyanov Subject: Re: [PATCH] resource cgroups: remove bogus cast Date: Wed, 07 Dec 2011 17:38:12 +0400 Message-ID: <4EDF6C44.3050306@parallels.com> References: <1323119621.3244.1.camel@offbook> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1323119621.3244.1.camel@offbook> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "dave-mXXj517/zsQ@public.gmane.org" Cc: Tejun Heo , "cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" , lkml On 12/06/2011 01:13 AM, Davidlohr Bueso wrote: > From: Davidlohr Bueso > > The memparse() function already accepts const char * as the parsing string. > > Signed-off-by: Davidlohr Bueso Acked-by: Pavel Emelyanov > --- > 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; >