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>)
This commit is contained in:
committed by
Bastien Nocera
parent
58c15ceeda
commit
a795ff4847
@@ -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 */
|
||||
|
Reference in New Issue
Block a user