refresh.c: some minor tuning/cleaning.