summaryrefslogtreecommitdiff
path: root/sysdeps/stub/ppp.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-10-24 19:09:32 +0000
committerMartin Baulig <martin@src.gnome.org>1999-10-24 19:09:32 +0000
commita5dd7e90637581d2e7dbfe6cc479d419971eff5c (patch)
tree9320e8bca16886c8bdbda21ef19a960765baae8b /sysdeps/stub/ppp.c
parenteae892c9b117e274b64426de837ae9e30e6cf383 (diff)
downloadlibgtop-a5dd7e90637581d2e7dbfe6cc479d419971eff5c.tar.gz
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 <martin@home-of-linux.org> * include/glibtop/*.h (glibtop_get_*, glibtop_init*): Changed the return value of all `glibtop_get_<feature>_* ()' and all `glibtop_init_<feature>_* ()' functions from void to int. * features.def: Reflect changes of the return values. * sysdeps/*/*.c: Reflect changes of the return values.
Diffstat (limited to 'sysdeps/stub/ppp.c')
-rw-r--r--sysdeps/stub/ppp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/stub/ppp.c b/sysdeps/stub/ppp.c
index 6d0905d5..0d682830 100644
--- a/sysdeps/stub/ppp.c
+++ b/sysdeps/stub/ppp.c
@@ -29,7 +29,7 @@ static const unsigned long _glibtop_sysdeps_ppp = 0;
/* Init function. */
-void
+int
glibtop_init_ppp_s (glibtop *server)
{
server->sysdeps.ppp = _glibtop_sysdeps_ppp;
@@ -37,7 +37,7 @@ glibtop_init_ppp_s (glibtop *server)
/* Provides PPP/ISDN information. */
-void
+int
glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device)
{
memset (buf, 0, sizeof (glibtop_ppp));