From: Ian Jackson Date: Sun, 13 Feb 2011 21:26:14 +0000 (+0000) Subject: realtime: break out new function movpos.c:ouposn_stable X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=9a86af027057e00eb1714a25769b7bb7894204fd;p=trains.git realtime: break out new function movpos.c:ouposn_stable --- diff --git a/hostside/movpos.c b/hostside/movpos.c index 4bbc7f7..02ed4b3 100644 --- a/hostside/movpos.c +++ b/hostside/movpos.c @@ -113,6 +113,10 @@ static void ouposn_moving(const MovPosChange *indep) { ouprintf("movpos %s position %s moving\n", move->i->pname, movpos_pname(move, indep->actual)); } +static void ouposn_stable(const Segment *move) { + ouprintf("movpos %s position %s stable\n", + move->i->pname, movpos_pname(move, move->movposcomb)); +} MovPosComb movposcomb_update_feature(MovPosComb startpoint, const MovFeatInfo *mfi, @@ -730,8 +734,7 @@ static void indep_indep_done(Indep *indep) { move->moving= 0; move->motion= 0; move->movposcomb= indep->target; - ouprintf("movpos %s position %s stable\n", - move->i->pname, movpos_pname(move, move->movposcomb)); + ouposn_stable(move); free(indep); }