From 454eea52f806141137ff62abaf78302ea3d7c9c0 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 4 May 2016 18:37:50 -0500 Subject: Simplify ps android scheduling policy fetch slightly. --- toys/posix/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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 -- cgit v1.2.3