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

@@ -66,8 +66,7 @@ glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
#else #else
if(!(kc = server->_priv->machine.kc)) if(!(kc = server->_priv->machine.kc))
return -GLIBTOP_ERROR_INCOMPATIBLE_KERNEL; return -GLIBTOP_ERROR_INCOMPATIBLE_KERNEL;
switch(kstat_chain_update(kc)) switch(kstat_chain_update(kc)) {
{
case -1: assert(0); /* Debugging, shouldn't happen */ case -1: assert(0); /* Debugging, shouldn't happen */
case 0: break; case 0: break;
default: glibtop_get_kstats(server); default: glibtop_get_kstats(server);
@@ -76,8 +75,7 @@ glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
return -GLIBTOP_ERROR_INCOMPATIBLE_KERNEL; return -GLIBTOP_ERROR_INCOMPATIBLE_KERNEL;
if(kstat_read(kc, ksp, NULL) < 0) if(kstat_read(kc, ksp, NULL) < 0)
return -GLIBTOP_ERROR_INCOMPATIBLE_KERNEL; return -GLIBTOP_ERROR_INCOMPATIBLE_KERNEL;
for(i = 0; i < 3; ++i) /* Do we have a countof macro? */ for(i = 0; i < 3; ++i) { /* Do we have a countof macro? */
{
kstat_named_t *kn; kstat_named_t *kn;
kn = (kstat_named_t *)kstat_data_lookup(ksp, avestrings[i]); kn = (kstat_named_t *)kstat_data_lookup(ksp, avestrings[i]);