aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-19 23:36:04 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-19 23:36:04 +0000
commit054e71820ce24b47f88465bb95c303d558355a91 (patch)
tree0f82f8e3d225f3bcefdbf7070ae0716f1b309630 /miscutils
parenteded4f7a23932a878ae06ba41964411299db5efb (diff)
downloadbusybox-w32-054e71820ce24b47f88465bb95c303d558355a91.tar.gz
busybox-w32-054e71820ce24b47f88465bb95c303d558355a91.tar.bz2
busybox-w32-054e71820ce24b47f88465bb95c303d558355a91.zip
remove casts from xmalloc()
git-svn-id: svn://busybox.net/trunk/busybox@17011 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 b09877137..0c9485350 100644
--- a/miscutils/nmeter.c
+++ b/miscutils/nmeter.c
@@ -104,7 +104,7 @@ static const char* get_file(proc_file *pf)
104 // but allows us to allocate only once (at first sample) 104 // but allows us to allocate only once (at first sample)
105 // per proc file, and reuse buffer for each sample 105 // per proc file, and reuse buffer for each sample
106 if (!pf->file) 106 if (!pf->file)
107 pf->file = (char*)xmalloc(proc_file_size); 107 pf->file = xmalloc(proc_file_size);
108 readfile_z(pf->file, proc_file_size, pf->name); 108 readfile_z(pf->file, proc_file_size, pf->name);
109 } 109 }
110 return pf->file; 110 return pf->file;