summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-19 23:36:04 +0000
committerDenis Vlasenko2006-12-19 23:36:04 +0000
commitb95636c52fbb058a39548bcbc4e86456ebbd7b7b (patch)
tree0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /miscutils
parent2375d75f3267e6e4370f221fea485eac8e73d402 (diff)
downloadbusybox-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.zip
busybox-b95636c52fbb058a39548bcbc4e86456ebbd7b7b.tar.gz
remove casts from xmalloc()
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/nmeter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/nmeter.c b/miscutils/nmeter.c
index b098771..0c94853 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;