Remove useless/meaningless calls to glibtop_init_[prs]() with sysdeps/{freebsd,linux}.
This commit is contained in:
committed by
Benoît Dejean
parent
58d50d3546
commit
d817bee619
@@ -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) {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user