summaryrefslogtreecommitdiff
path: root/sysdeps/linux/shm_limits.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1999-11-21 16:54:36 +0000
committerMartin Baulig <martin@src.gnome.org>1999-11-21 16:54:36 +0000
commit81176f81816226df3640b6e3f70cf9d72f40744f (patch)
tree6d5b9019ab5cc8fd03ff40b5c1e9cd0d35e16d42 /sysdeps/linux/shm_limits.c
parentcdc8e43a7983723c511dab6adc7f55f6aa995cb9 (diff)
downloadlibgtop-81176f81816226df3640b6e3f70cf9d72f40744f.tar.gz
Reflect latest interface changes; return 0 on success and -1 on error.
Diffstat (limited to 'sysdeps/linux/shm_limits.c')
-rw-r--r--sysdeps/linux/shm_limits.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/linux/shm_limits.c b/sysdeps/linux/shm_limits.c
index 67c0f87a..2845fc16 100644
--- a/sysdeps/linux/shm_limits.c
+++ b/sysdeps/linux/shm_limits.c
@@ -37,6 +37,8 @@ int
glibtop_init_shm_limits_s (glibtop *server)
{
server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
+
+ return 0;
}
/* Provides information about sysv ipc limits. */
@@ -59,4 +61,6 @@ glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
buf->shmmni = shminfo.shmmni;
buf->shmseg = shminfo.shmseg;
buf->shmall = shminfo.shmall;
+
+ return 0;
}