summaryrefslogtreecommitdiff
path: root/sysdeps/sun4
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2004-03-09 23:02:06 +0000
committerBastien Nocera <hadess@src.gnome.org>2004-03-09 23:02:06 +0000
commita795ff4847e6357e583ce2036f2623577fa0d051 (patch)
tree06e738d6da4628ad6d374abf6f30b79854cf4885 /sysdeps/sun4
parent58c15ceeda63861ad7738c85debfa6e3fd0e2b11 (diff)
downloadlibgtop-a795ff4847e6357e583ce2036f2623577fa0d051.tar.gz
fix g_malloc usage on non-Linux platforms (patch by Benoit Dejean
2004-03-09 Bastien Nocera <hadess@hadess.net> * fix g_malloc usage on non-Linux platforms (patch by Benoit Dejean <bnet@ifrance.com>)
Diffstat (limited to 'sysdeps/sun4')
-rw-r--r--sysdeps/sun4/ChangeLog6
-rw-r--r--sysdeps/sun4/open.c2
-rw-r--r--sysdeps/sun4/proclist.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/sysdeps/sun4/ChangeLog b/sysdeps/sun4/ChangeLog
index 56e3e62b..670cc6a0 100644
--- a/sysdeps/sun4/ChangeLog
+++ b/sysdeps/sun4/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-09 Bastien Nocera <hadess@hadess.net>
+
+ * open.c: (glibtop_open_p):
+ * proclist.c: (glibtop_get_proclist_p): fix g_malloc usage on non-Linux
+ platforms (patch by Benoit Dejean <bnet@ifrance.com>)
+
2003-10-21 Bastien Nocera <hadess@hadess.net>
* Makefile.am: install only one library, libgtop-2.0
diff --git a/sysdeps/sun4/open.c b/sysdeps/sun4/open.c
index a1bf813a..30b9d5f5 100644
--- a/sysdeps/sun4/open.c
+++ b/sysdeps/sun4/open.c
@@ -169,7 +169,7 @@ glibtop_open_p (glibtop *server, const char *program_name,
sizeof (struct page);
server->machine.physpage = (struct page *)
- g_malloc (server, server->machine.bytesize);
+ g_malloc (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 56d93d19..a9bb80e1 100644
--- a/sysdeps/sun4/proclist.c
+++ b/sysdeps/sun4/proclist.c
@@ -71,7 +71,7 @@ glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
proc_size = nproc * sizeof (unsigned);
- proc_list = g_malloc (server, proc_size);
+ proc_list = g_malloc (proc_size);
/* Write process list. */