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