summaryrefslogtreecommitdiffstats
path: root/rose
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-30 10:15:03 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-02-06 23:43:46 +0100
commitfc98e74ecc8d13f221dfb31b8b6f39c382270d08 (patch)
treeaa130c88487e07190e882e23733d2955b849c8c2 /rose
parent04672636fdf016894725e14b93b01367447a3534 (diff)
rsmemsiz: Mark several functions static.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'rose')
-rw-r--r--rose/rsmemsiz.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/rose/rsmemsiz.c b/rose/rsmemsiz.c
index 81fe023..f4a707d 100644
--- a/rose/rsmemsiz.c
+++ b/rose/rsmemsiz.c
@@ -50,7 +50,8 @@ static char buf[300];
#define SET_IF_DESIRED(x,y) if (x) *(x) = (y) /* evals 'x' twice */
-int uptime(double *uptime_secs, double *idle_secs) {
+static int uptime(double *uptime_secs, double *idle_secs)
+{
double up=0, idle=0;
FILE_TO_BUF(PROC_UPTIME_FILE)
@@ -63,7 +64,8 @@ int uptime(double *uptime_secs, double *idle_secs) {
return up; /* assume never be zero seconds in practice */
}
-int loadavg(double *av1, double *av5, double *av15) {
+static int loadavg(double *av1, double *av5, double *av15)
+{
double avg_1=0, avg_5=0, avg_15=0;
FILE_TO_BUF(PROC_LOADAVG_FILE)
@@ -93,7 +95,8 @@ int loadavg(double *av1, double *av5, double *av15) {
#define MAX_ROW 3 /* these are a little liberal for flexibility */
#define MAX_COL 7
-unsigned** meminfo(void) {
+static unsigned **meminfo(void)
+{
static unsigned *row[MAX_ROW + 1]; /* row pointers */
static unsigned num[MAX_ROW * MAX_COL]; /* number storage */
char *p;