aboutsummaryrefslogtreecommitdiff
path: root/libbb/procps.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/procps.c')
-rw-r--r--libbb/procps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/procps.c b/libbb/procps.c
index 015ad80ef..f67f7dcde 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -93,7 +93,7 @@ static int read_to_buf(const char *filename, void *buf)
93 return ret; 93 return ret;
94} 94}
95 95
96procps_status_t *alloc_procps_scan(int flags) 96static procps_status_t *alloc_procps_scan(void)
97{ 97{
98 unsigned n = getpagesize(); 98 unsigned n = getpagesize();
99 procps_status_t* sp = xzalloc(sizeof(procps_status_t)); 99 procps_status_t* sp = xzalloc(sizeof(procps_status_t));
@@ -175,7 +175,7 @@ procps_status_t *procps_scan(procps_status_t* sp, int flags)
175 struct stat sb; 175 struct stat sb;
176 176
177 if (!sp) 177 if (!sp)
178 sp = alloc_procps_scan(flags); 178 sp = alloc_procps_scan();
179 179
180 for (;;) { 180 for (;;) {
181 entry = readdir(sp->dir); 181 entry = readdir(sp->dir);