From a795ff4847e6357e583ce2036f2623577fa0d051 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 9 Mar 2004 23:02:06 +0000 Subject: fix g_malloc usage on non-Linux platforms (patch by Benoit Dejean 2004-03-09 Bastien Nocera * fix g_malloc usage on non-Linux platforms (patch by Benoit Dejean ) --- sysdeps/sun4/ChangeLog | 6 ++++++ sysdeps/sun4/open.c | 2 +- sysdeps/sun4/proclist.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'sysdeps/sun4') 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 + + * open.c: (glibtop_open_p): + * proclist.c: (glibtop_get_proclist_p): fix g_malloc usage on non-Linux + platforms (patch by Benoit Dejean ) + 2003-10-21 Bastien Nocera * 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. */ -- cgit v1.2.1