From a5dd7e90637581d2e7dbfe6cc479d419971eff5c Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Sun, 24 Oct 1999 19:09:32 +0000 Subject: This is a very big an possibly breaking commit. It changes the return values of all sysdeps functions which were previosly returning void to int. This is the first step to implement better error handling in LibGTop. Martin 1999-10-24 Martin Baulig * include/glibtop/*.h (glibtop_get_*, glibtop_init*): Changed the return value of all `glibtop_get__* ()' and all `glibtop_init__* ()' functions from void to int. * features.def: Reflect changes of the return values. * sysdeps/*/*.c: Reflect changes of the return values. --- include/glibtop/swap.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/glibtop/swap.h') diff --git a/include/glibtop/swap.h b/include/glibtop/swap.h index 540a321e..43b9c5a6 100644 --- a/include/glibtop/swap.h +++ b/include/glibtop/swap.h @@ -59,14 +59,14 @@ struct _glibtop_swap #define glibtop_get_swap_r glibtop_get_swap_s #endif -void glibtop_get_swap_l (glibtop *server, glibtop_swap *buf); +int glibtop_get_swap_l (glibtop *server, glibtop_swap *buf); #if GLIBTOP_SUID_SWAP -void glibtop_init_swap_p (glibtop *server); -void glibtop_get_swap_p (glibtop *server, glibtop_swap *buf); +int glibtop_init_swap_p (glibtop *server); +int glibtop_get_swap_p (glibtop *server, glibtop_swap *buf); #else -void glibtop_init_swap_s (glibtop *server); -void glibtop_get_swap_s (glibtop *server, glibtop_swap *buf); +int glibtop_init_swap_s (glibtop *server); +int glibtop_get_swap_s (glibtop *server, glibtop_swap *buf); #endif #ifdef GLIBTOP_NAMES -- cgit v1.2.1