Remove useless/meaningless calls to glibtop_init_[prs]() with sysdeps/{freebsd,linux}.

This commit is contained in:
Benoit Dejean
2015-07-21 23:42:43 +02:00
committed by Benoît Dejean
parent 58d50d3546
commit d817bee619
26 changed files with 0 additions and 50 deletions

View File

@@ -194,7 +194,6 @@ glibtop_get_fsusage_s(glibtop *server, glibtop_fsusage *buf, const char *path)
{
struct statvfs fsd;
glibtop_init_r(&server, 0, 0);
memset(buf, 0, sizeof(glibtop_fsusage));
if (statvfs(path, &fsd) < 0) {

View File

@@ -118,7 +118,6 @@ glibtop_get_mountlist_s(glibtop *server, glibtop_mountlist *buf, int all_fs)
GArray* entries;
IgnoreList* ig = NULL;
glibtop_init_r(&server, 0, 0);
memset(buf, 0, sizeof(glibtop_mountlist));
/* wild guess, preallocate 8 entries