From b95636c52fbb058a39548bcbc4e86456ebbd7b7b Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 19 Dec 2006 23:36:04 +0000 Subject: remove casts from xmalloc() --- miscutils/nmeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/nmeter.c b/miscutils/nmeter.c index b09877137..0c9485350 100644 --- a/miscutils/nmeter.c +++ b/miscutils/nmeter.c @@ -104,7 +104,7 @@ static const char* get_file(proc_file *pf) // but allows us to allocate only once (at first sample) // per proc file, and reuse buffer for each sample if (!pf->file) - pf->file = (char*)xmalloc(proc_file_size); + pf->file = xmalloc(proc_file_size); readfile_z(pf->file, proc_file_size, pf->name); } return pf->file; -- cgit v1.2.3