diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2005-08-02 09:47:21 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2005-08-02 09:47:21 +0000 |
commit | 78cb7832c50f0cbb8225a201d46539198cf99a25 (patch) | |
tree | 907169723e04fa7a360739f8ca00c714e7104efd /sysdeps/common/sysdeps_suid.c | |
parent | b3979e69426cd74386ed9fc6e99f55a4ec353b88 (diff) | |
download | libgtop-78cb7832c50f0cbb8225a201d46539198cf99a25.tar.gz |
Moved _glibtop_init_hook_[sp] declaration to private glibtop/init_hooks.h.
* configure.in:
* include/glibtop/Makefile.am:
* include/glibtop/glibtop-server.h:
* include/glibtop/init_hooks.h:
* include/glibtop/sysdeps.h:
* lib/init.c: (glibtop_init_s):
* lib/sysdeps.c:
* sysdeps/aix/open.c: (glibtop_init_p):
* sysdeps/common/sysdeps_suid.c:
* sysdeps/freebsd/open.c: (glibtop_init_p):
* sysdeps/osf1/open_suid.c: (glibtop_init_p):
* sysdeps/solaris/open_suid.c: (glibtop_init_p):
* sysdeps/stub_suid/open.c: (glibtop_init_p):
Moved _glibtop_init_hook_[sp] declaration to private
glibtop/init_hooks.h. Marked them const.
Fixed GLIBTOP_SUID_NETLIST issues.
Diffstat (limited to 'sysdeps/common/sysdeps_suid.c')
-rw-r--r-- | sysdeps/common/sysdeps_suid.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/common/sysdeps_suid.c b/sysdeps/common/sysdeps_suid.c index 97731d9f..5b52348c 100644 --- a/sysdeps/common/sysdeps_suid.c +++ b/sysdeps/common/sysdeps_suid.c @@ -25,8 +25,9 @@ #include <glibtop/open.h> #include <glibtop/union.h> #include <glibtop/sysdeps.h> +#include <glibtop/init_hooks.h> -glibtop_init_func_t _glibtop_init_hook_p [] = { +const glibtop_init_func_t _glibtop_init_hook_p [] = { #if GLIBTOP_SUID_CPU glibtop_init_cpu_p, #endif @@ -84,6 +85,9 @@ glibtop_init_func_t _glibtop_init_hook_p [] = { #if GLIBTOP_SUID_NETLOAD glibtop_init_netload_p, #endif +#if GLIBTOP_SUID_NETLIST + glibtop_init_netlist_p, +#endif #if GLIBTOP_SUID_PPP glibtop_init_ppp_p, #endif |