Fixed glibtop_init_s call.

* procmap.c: (glibtop_get_proc_map_s): Fixed glibtop_init_s call.
This commit is contained in:
Benoît Dejean
2004-10-04 12:08:44 +00:00
parent 9f91b2ddb8
commit a1677aefa8
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2004-10-04 Benoît Dejean <tazforever@dlfp.org>
* procmap.c: (glibtop_get_proc_map_s): Fixed glibtop_init_s call.
2004-10-04 Benoît Dejean <tazforever@dlfp.org> 2004-10-04 Benoît Dejean <tazforever@dlfp.org>
* Makefile.am: * Makefile.am:

View File

@@ -41,7 +41,7 @@ glibtop_init_proc_map_s (glibtop *server)
glibtop_map_entry * glibtop_map_entry *
glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid) glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid)
{ {
glibtop_init_p (&server, GLIBTOP_SYSDEPS_PROC_MAP, 0); glibtop_init_p (&server, (1L << GLIBTOP_SYSDEPS_PROC_MAP), 0);
memset (buf, 0, sizeof (glibtop_proc_map)); memset (buf, 0, sizeof (glibtop_proc_map));