cleanup iface.c (thanks M. Dolze)

This commit is contained in:
marschap
2006-05-07 17:32:35 +00:00
parent 08bb695d8d
commit c6a1f841a7
15 changed files with 132 additions and 528 deletions
+6 -6
View File
@@ -15,7 +15,7 @@
* 3. Neither the name of the author nor the names of its contributors
* may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
@@ -149,11 +149,11 @@ int machine_get_fs(mounts_type fs[], int *cnt)
{
struct statfs *mntbuf;
struct statfs *pp;
int statcnt, fscnt, i;
int statcnt, fscnt, i;
fscnt = getmntinfo(&mntbuf, MNT_WAIT);
if (fscnt == 0)
{
if (fscnt == 0)
{
perror("getmntinfo");
return(FALSE);
}
@@ -292,7 +292,7 @@ int machine_get_procs(LinkedList *procs)
kprocs = kvm_getprocs(kvmd, KERN_PROC_ALL, 0, &nproc);
if (kprocs == NULL)
{
{
perror("kvm_getprocs");
kvm_close(kvmd);
return(FALSE);
@@ -375,7 +375,7 @@ int machine_get_uptime(double *up, double *idle)
else
*idle = 100.*curr_load.idle/curr_load.total;
return(TRUE);
return(TRUE);
}
#endif /* __OpenBSD__ */