diff options
author | Bastien Nocera <hadess@src.gnome.org> | 2003-10-20 13:55:44 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@src.gnome.org> | 2003-10-20 13:55:44 +0000 |
commit | ba36a20cb81c8b3561b99a2412a9fd71b7cd8c12 (patch) | |
tree | 88a5de6613816aa1db1aea08c73978c303837df9 /sysdeps/sun4 | |
parent | af8478ca5fb759bd9e22ead29d83be5634b8fc87 (diff) | |
download | libgtop-ba36a20cb81c8b3561b99a2412a9fd71b7cd8c12.tar.gz |
- replace all the xmalloc crap by glib memory management functions
Diffstat (limited to 'sysdeps/sun4')
-rw-r--r-- | sysdeps/sun4/ChangeLog | 6 | ||||
-rw-r--r-- | sysdeps/sun4/open.c | 4 | ||||
-rw-r--r-- | sysdeps/sun4/proclist.c | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/sysdeps/sun4/ChangeLog b/sysdeps/sun4/ChangeLog index f05eac85..3ab3c2c7 100644 --- a/sysdeps/sun4/ChangeLog +++ b/sysdeps/sun4/ChangeLog @@ -1,3 +1,9 @@ +2003-10-20 Bastien Nocera <hadess@hadess.net> + + * open.c: (glibtop_open_p): + * proclist.c: (glibtop_get_proclist_p): + replace all the xmalloc crap by glib memory management functions + 2001-10-17 Abel Cheung <maddog@linux.org.hk> * Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop. diff --git a/sysdeps/sun4/open.c b/sysdeps/sun4/open.c index 30fd3e1e..e68884fa 100644 --- a/sysdeps/sun4/open.c +++ b/sysdeps/sun4/open.c @@ -149,7 +149,7 @@ glibtop_open_p (glibtop *server, const char *program_name, server->machine.ptable_size = (unsigned long) server->machine.nproc * (unsigned long) sizeof (struct proc); - server->machine.proc_table = glibtop_malloc_r + server->machine.proc_table = g_malloc (server, server->machine.ptable_size); /* This are for the memory statistics. */ @@ -170,7 +170,7 @@ glibtop_open_p (glibtop *server, const char *program_name, sizeof (struct page); server->machine.physpage = (struct page *) - glibtop_malloc_r (server, server->machine.bytesize); + g_malloc (server, server->machine.bytesize); /* get the page size with "getpagesize" and * calculate pageshift from it */ diff --git a/sysdeps/sun4/proclist.c b/sysdeps/sun4/proclist.c index 4b6fc42e..4719a6bd 100644 --- a/sysdeps/sun4/proclist.c +++ b/sysdeps/sun4/proclist.c @@ -72,7 +72,7 @@ glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf, proc_size = nproc * sizeof (unsigned); - proc_list = glibtop_malloc_r (server, proc_size); + proc_list = g_malloc (server, proc_size); /* Write process list. */ |