aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-05-04 18:37:50 -0500
committerRob Landley <rob@landley.net>2016-05-04 18:37:50 -0500
commit454eea52f806141137ff62abaf78302ea3d7c9c0 (patch)
treec65d7c1c84cc098e52af4c23b48716eafdef2ef4 /toys
parent5c8f3d7d2b03c0c6ba8ce244783cb88b29108a4d (diff)
downloadtoybox-454eea52f806141137ff62abaf78302ea3d7c9c0.tar.gz
Simplify ps android scheduling policy fetch slightly.
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ps.c b/toys/posix/ps.c
index c0d382f6..7843ffa5 100644
--- a/toys/posix/ps.c
+++ b/toys/posix/ps.c
@@ -680,7 +680,7 @@ static int get_ps(struct dirtree *new)
}
// Do we need Android scheduling policy?
- if (TT.bits&_PS_PCY) get_sched_policy(*slot, (SchedPolicy *)&slot[SLOT_pcy]);
+ if (TT.bits&_PS_PCY) get_sched_policy(*slot, (void *)&slot[SLOT_pcy]);
// Fetch string data while parentfd still available, appending to buf.
// (There's well over 3k of toybuf left. We could dynamically malloc, but