[tor-bugs] #17985 [Tor]: Refactor common parts of entry_is_live and entry_guard_set_status

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Jan 3 12:19:31 UTC 2016


#17985: Refactor common parts of entry_is_live and entry_guard_set_status
-----------------------------+---------------------------
     Reporter:  teor         |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  Medium       |  Milestone:  Tor: 0.2.???
    Component:  Tor          |    Version:
     Severity:  Normal       |   Keywords:  easy refactor
Actual Points:               |  Parent ID:
       Points:               |    Sponsor:
-----------------------------+---------------------------
 entry_is_live and entry_guard_set_status look very similar, and return
 almost identical messages.

 We could refactor out the common code (even if we have to use macros).

 This would also avoid them getting out of sync.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17985>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list