summaryrefslogtreecommitdiff
path: root/sysdeps/sun4
diff options
context:
space:
mode:
authorBastien Nocera <hadess@src.gnome.org>2003-10-20 15:20:16 +0000
committerBastien Nocera <hadess@src.gnome.org>2003-10-20 15:20:16 +0000
commitb67e4c7f7d1a78e3e21b46955097eb33718bf461 (patch)
tree005dc92d623f76ab2c244e152770cd6db1b0a38d /sysdeps/sun4
parentba36a20cb81c8b3561b99a2412a9fd71b7cd8c12 (diff)
downloadlibgtop-b67e4c7f7d1a78e3e21b46955097eb33718bf461.tar.gz
- fixed compilation
Diffstat (limited to 'sysdeps/sun4')
-rw-r--r--sysdeps/sun4/ChangeLog8
-rw-r--r--sysdeps/sun4/glibtop_machine.h4
-rw-r--r--sysdeps/sun4/glibtop_server.h4
-rw-r--r--sysdeps/sun4/glibtop_suid.h4
-rw-r--r--sysdeps/sun4/open.c1
-rw-r--r--sysdeps/sun4/proclist.c1
6 files changed, 14 insertions, 8 deletions
diff --git a/sysdeps/sun4/ChangeLog b/sysdeps/sun4/ChangeLog
index 3ab3c2c7..525fc80b 100644
--- a/sysdeps/sun4/ChangeLog
+++ b/sysdeps/sun4/ChangeLog
@@ -1,5 +1,13 @@
2003-10-20 Bastien Nocera <hadess@hadess.net>
+ * glibtop_machine.h:
+ * glibtop_server.h:
+ * glibtop_suid.h:
+ * open.c:
+ * proclist.c: fixed compilation
+
+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
diff --git a/sysdeps/sun4/glibtop_machine.h b/sysdeps/sun4/glibtop_machine.h
index 8ab56840..ca074537 100644
--- a/sysdeps/sun4/glibtop_machine.h
+++ b/sysdeps/sun4/glibtop_machine.h
@@ -48,7 +48,7 @@
#include "loadavg.h"
-BEGIN_LIBGTOP_DECLS
+G_BEGIN_DECLS
/* Older versions of SunOS don't have a typedef for pid_t.
Hopefully this will catch all those cases without causing other problems.
@@ -112,6 +112,6 @@ struct proc *_glibtop_find_pid (void *void_server, pid_t pid);
#endif
-END_LIBGTOP_DECLS
+G_END_DECLS
#endif
diff --git a/sysdeps/sun4/glibtop_server.h b/sysdeps/sun4/glibtop_server.h
index e631e43e..ffdff197 100644
--- a/sysdeps/sun4/glibtop_server.h
+++ b/sysdeps/sun4/glibtop_server.h
@@ -24,7 +24,7 @@
#ifndef __GLIBTOP_SERVER_H__
#define __GLIBTOP_SERVER_H__
-BEGIN_LIBGTOP_DECLS
+G_BEGIN_DECLS
#define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU)
#define GLIBTOP_SUID_MEM (1 << GLIBTOP_SYSDEPS_MEM)
@@ -44,6 +44,6 @@ BEGIN_LIBGTOP_DECLS
#define GLIBTOP_SUID_PROC_SEGMENT (1 << GLIBTOP_SYSDEPS_PROC_SEGMENT)
#define GLIBTOP_SUID_PROC_MAP (1 << GLIBTOP_SYSDEPS_PROC_MAP)
-END_LIBGTOP_DECLS
+G_END_DECLS
#endif
diff --git a/sysdeps/sun4/glibtop_suid.h b/sysdeps/sun4/glibtop_suid.h
index 18d3b1d3..d6527538 100644
--- a/sysdeps/sun4/glibtop_suid.h
+++ b/sysdeps/sun4/glibtop_suid.h
@@ -24,7 +24,7 @@
#ifndef __GLIBTOP_SUID_H__
#define __GLIBTOP_SUID_H__
-BEGIN_LIBGTOP_DECLS
+G_BEGIN_DECLS
static inline void glibtop_suid_enter (glibtop *server) {
setregid (server->machine.gid, server->machine.egid);
@@ -43,6 +43,6 @@ glibtop_open_p (glibtop *server, const char *program_name,
const unsigned long features,
const unsigned flags);
-END_LIBGTOP_DECLS
+G_END_DECLS
#endif
diff --git a/sysdeps/sun4/open.c b/sysdeps/sun4/open.c
index e68884fa..a1bf813a 100644
--- a/sysdeps/sun4/open.c
+++ b/sysdeps/sun4/open.c
@@ -23,7 +23,6 @@
#include <glibtop.h>
#include <glibtop/open.h>
-#include <glibtop/xmalloc.h>
struct nlist _glibtop_nlist[] = {
#ifdef i386
diff --git a/sysdeps/sun4/proclist.c b/sysdeps/sun4/proclist.c
index 4719a6bd..56d93d19 100644
--- a/sysdeps/sun4/proclist.c
+++ b/sysdeps/sun4/proclist.c
@@ -22,7 +22,6 @@
*/
#include <glibtop.h>
-#include <glibtop/xmalloc.h>
#include <glibtop/proclist.h>
#include <glibtop_suid.h>