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:
Markus Armbruster 2016-07-17 11:29:35 +02:00
parent 8e246ee06d
commit cc61904354
5 changed files with 6 additions and 6 deletions

View file

@ -249,7 +249,7 @@ produce_sect(struct natstr *np, int etu, struct bp *bp, int p_sect[][2])
sp = &scratch_sect;
}
sp->sct_avail = do_feed(sp, np, etu, 0);
do_feed(sp, np, etu, 0);
if (sp->sct_off || np->nat_money < 0) {
sp->sct_avail = 0;