From mboxrd@z Thu Jan 1 00:00:00 1970 From: Davidlohr Bueso Subject: Re: [PATCH] resource cgroups: remove bogus cast Date: Wed, 07 Dec 2011 13:15:32 +0100 Message-ID: <1323260132.3318.0.camel@offbook> References: <1323119621.3244.1.camel@offbook> Reply-To: dave-mXXj517/zsQ@public.gmane.org Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1323119621.3244.1.camel@offbook> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Pavel Emelianov Cc: Tejun Heo , Li Zefan , lkml , containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org ping? On Mon, 2011-12-05 at 22:13 +0100, Davidlohr Bueso wrote: > From: Davidlohr Bueso > > The memparse() function already accepts const char * as the parsing string. > > Signed-off-by: Davidlohr Bueso > --- > 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; > -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html