diff options
author | Martin Baulig <martin@home-of-linux.org> | 2000-02-24 12:48:55 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 2000-02-24 12:48:55 +0000 |
commit | 7b30b1ec86c2b75c51af53c2e7e27a845ed91e88 (patch) | |
tree | aabe4c4a5471f1d1ebd627cc1fc9ab69debea15c /sysdeps | |
parent | 9e2a8f7db800662db82b7d3b763e47b38de6681f (diff) | |
download | libgtop-7b30b1ec86c2b75c51af53c2e7e27a845ed91e88.tar.gz |
Applied a patch from Aron Griffis <agriffis@bigfoot.com>.
2000-02-24 Martin Baulig <martin@home-of-linux.org>
Applied a patch from Aron Griffis <agriffis@bigfoot.com>.
* glibtop_machine.h: Don't declare table () here.
* netinfo.c: Reflect latest interface changes.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/osf1/ChangeLog | 7 | ||||
-rw-r--r-- | sysdeps/osf1/glibtop_machine.h | 2 | ||||
-rw-r--r-- | sysdeps/osf1/glibtop_suid.h | 4 | ||||
-rw-r--r-- | sysdeps/osf1/netinfo.c | 9 |
4 files changed, 15 insertions, 7 deletions
diff --git a/sysdeps/osf1/ChangeLog b/sysdeps/osf1/ChangeLog index 97619244..d4206564 100644 --- a/sysdeps/osf1/ChangeLog +++ b/sysdeps/osf1/ChangeLog @@ -1,3 +1,10 @@ +2000-02-24 Martin Baulig <martin@home-of-linux.org> + + Applied a patch from Aron Griffis <agriffis@bigfoot.com>. + + * glibtop_machine.h: Don't declare table () here. + * netinfo.c: Reflect latest interface changes. + 1999-05-11 Martin Baulig <martin@home-of-linux.org> * procstate.c: Fixed implementation of the `state' field; added diff --git a/sysdeps/osf1/glibtop_machine.h b/sysdeps/osf1/glibtop_machine.h index 901a5216..f8d26de9 100644 --- a/sysdeps/osf1/glibtop_machine.h +++ b/sysdeps/osf1/glibtop_machine.h @@ -36,8 +36,6 @@ BEGIN_LIBGTOP_DECLS -int table (int id, int index, char *addr, int nel, u_int lel); - typedef struct _glibtop_machine glibtop_machine; struct _glibtop_machine diff --git a/sysdeps/osf1/glibtop_suid.h b/sysdeps/osf1/glibtop_suid.h index 7a06aedb..451e959f 100644 --- a/sysdeps/osf1/glibtop_suid.h +++ b/sysdeps/osf1/glibtop_suid.h @@ -32,12 +32,12 @@ BEGIN_LIBGTOP_DECLS static inline void glibtop_suid_enter (glibtop *server) { setreuid (server->_priv->machine.uid, server->_priv->machine.euid); -}; +} static inline void glibtop_suid_leave (glibtop *server) { if (setreuid (server->_priv->machine.euid, server->_priv->machine.uid)) _exit (1); -}; +} void glibtop_init_p (glibtop *server, const unsigned long features, diff --git a/sysdeps/osf1/netinfo.c b/sysdeps/osf1/netinfo.c index ffb19d67..6747a4bb 100644 --- a/sysdeps/osf1/netinfo.c +++ b/sysdeps/osf1/netinfo.c @@ -43,9 +43,12 @@ glibtop_init_netinfo_p (glibtop *server) /* Provides Network statistics. */ -int -glibtop_get_netinfo_p (glibtop *server, glibtop_netinfo *buf, - const char *interface, unsigned transport) +glibtop_ifaddr * +glibtop_get_netinfo_p (glibtop *server, + glibtop_array *array, + glibtop_netinfo *buf, + const char *interface, + u_int64_t transport) { glibtop_init_p (server, GLIBTOP_SYSDEPS_NETINFO, 0); |