Added missing call to libgtop_init();

* df.c: (main):
	* pprint.c: (main):
	* procargs.c: (main): Added missing call to libgtop_init();
This commit is contained in:
Benoît Dejean
2004-09-25 08:46:44 +00:00
parent d0833edb66
commit d809faba3e
4 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
#include <glibtop.h>
#include <glibtop/procargs.h>
#include <stdlib.h>
@@ -27,6 +28,8 @@ static void show_args(pid_t pid, unsigned max_len)
int main(int argc, char **argv)
{
glibtop_init();
show_args(getpid(), 0);
show_args(getpid(), 15);