summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorEric Andersen2000-06-19 17:25:40 +0000
committerEric Andersen2000-06-19 17:25:40 +0000
commitb610615be9aedfac07d1e01f12575707fa3a227c (patch)
treeb94c0d6a506d1ef77f79df246a26d504c84b7110 /procps
parentdbb3019d0de410960feac649a0b9320ae245cca1 (diff)
downloadbusybox-b610615be9aedfac07d1e01f12575707fa3a227c.zip
busybox-b610615be9aedfac07d1e01f12575707fa3a227c.tar.gz
Updates to a number of apps to remove warnings/compile errors under libc5.
Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
Diffstat (limited to 'procps')
-rw-r--r--procps/free.c2
-rw-r--r--procps/ps.c2
-rw-r--r--procps/uptime.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/procps/free.c b/procps/free.c
index e6f130e..a81189b 100644
--- a/procps/free.c
+++ b/procps/free.c
@@ -59,5 +59,5 @@ extern int free_main(int argc, char **argv)
printf("%6s%13ld%13ld%13ld\n", "Total:", info.totalram+info.totalswap,
(info.totalram-info.freeram)+(info.totalswap-info.freeswap),
info.freeram+info.freeswap);
- exit(TRUE);
+ return(TRUE);
}
diff --git a/procps/ps.c b/procps/ps.c
index 41b8465..13b6ce5 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -192,7 +192,7 @@ extern int ps_main(int argc, char **argv)
fprintf(stdout, "\n");
}
closedir(dir);
- exit(TRUE);
+ return(TRUE);
}
diff --git a/procps/uptime.c b/procps/uptime.c
index af54158..67ca34d 100644
--- a/procps/uptime.c
+++ b/procps/uptime.c
@@ -69,5 +69,5 @@ extern int uptime_main(int argc, char **argv)
LOAD_INT(info.loads[1]), LOAD_FRAC(info.loads[1]),
LOAD_INT(info.loads[2]), LOAD_FRAC(info.loads[2]));
- exit(TRUE);
+ return(TRUE);
}