[tor-commits] [tor/maint-0.2.2] Turn the loop bodies of rep_hist_save/load_state into functions