lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1323119621.3244.1.camel@offbook>
Date:	Mon, 05 Dec 2011 22:13:41 +0100
From:	Davidlohr Bueso <dave@....org>
To:	Pavel Emelianov <xemul@...nvz.org>, Tejun Heo <tj@...nel.org>,
	Li Zefan <lizf@...fujitsu.com>
Cc:	lkml <linux-kernel@...r.kernel.org>,
	containers@...ts.linux-foundation.org, cgroups@...r.kernel.org
Subject: [PATCH] resource cgroups: remove bogus cast

From: Davidlohr Bueso <dave@....org>

The memparse() function already accepts const char * as the parsing string.

Signed-off-by: Davidlohr Bueso <dave@....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;
 
-- 
1.7.4.1



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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ