update: Drop do_feed()'s return value
Call callers assign the return value to sp->sct_avail now. Move the assignment to do_feed() and drop the return value. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
8e246ee06d
commit
cc61904354
5 changed files with 6 additions and 6 deletions
|
@ -52,7 +52,7 @@ static int babies(int, int, double, int, int, int);
|
|||
/*
|
||||
* feed the individual sector
|
||||
*/
|
||||
int
|
||||
void
|
||||
do_feed(struct sctstr *sp, struct natstr *np, int etu,
|
||||
int round_babies_down)
|
||||
{
|
||||
|
@ -122,7 +122,7 @@ do_feed(struct sctstr *sp, struct natstr *np, int etu,
|
|||
trunc_people(sp, np);
|
||||
|
||||
sp->sct_work = sctwork;
|
||||
return work_avail;
|
||||
sp->sct_avail = work_avail;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue