Indent everything to 4 spaces to make it consistant with the other LibGTop

code.
This commit is contained in:
Martin Baulig
1999-12-25 19:01:13 +00:00
parent dbb5f9b636
commit bbb539ef56
6 changed files with 135 additions and 137 deletions

View File

@@ -37,14 +37,14 @@ static const unsigned long _glibtop_sysdeps_shm_limits =
int
glibtop_init_shm_limits_p (glibtop *server)
{
kvm_t *kd = server->_priv->machine.kd;
kvm_t *kd = server->_priv->machine.kd;
if(kd && !kvm_nlist(kd, nlst))
server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
else
server->sysdeps.shm_limits = 0;
if(kd && !kvm_nlist(kd, nlst))
server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
else
server->sysdeps.shm_limits = 0;
return 0;
return 0;
}
/* Provides information about sysv ipc limits. */
@@ -52,21 +52,21 @@ glibtop_init_shm_limits_p (glibtop *server)
int
glibtop_get_shm_limits_p (glibtop *server, glibtop_shm_limits *buf)
{
kvm_t *kd = server->_priv->machine.kd;
struct shminfo sinfo;
kvm_t *kd = server->_priv->machine.kd;
struct shminfo sinfo;
memset (buf, 0, sizeof (glibtop_shm_limits));
memset (buf, 0, sizeof (glibtop_shm_limits));
if(!(server->sysdeps.shm_limits))
return -GLIBTOP_ERROR_INCOMPATIBLE_KERNEL;
if(kvm_read(kd, nlst[0].n_value, (void *)&sinfo,
sizeof(struct shminfo)) != sizeof(struct shminfo))
return -GLIBTOP_ERROR_INCOMPATIBLE_KERNEL;
buf->shmmax = sinfo.shmmax;
buf->shmmin = sinfo.shmmin;
buf->shmmni = sinfo.shmmni;
buf->shmseg = sinfo.shmseg;
buf->flags = _glibtop_sysdeps_shm_limits;
if(!(server->sysdeps.shm_limits))
return -GLIBTOP_ERROR_INCOMPATIBLE_KERNEL;
if(kvm_read(kd, nlst[0].n_value, (void *)&sinfo,
sizeof(struct shminfo)) != sizeof(struct shminfo))
return -GLIBTOP_ERROR_INCOMPATIBLE_KERNEL;
buf->shmmax = sinfo.shmmax;
buf->shmmin = sinfo.shmmin;
buf->shmmni = sinfo.shmmni;
buf->shmseg = sinfo.shmseg;
buf->flags = _glibtop_sysdeps_shm_limits;
return 0;
return 0;
}