Implement a voting_schedule_free() function
The data structure voting_schedule_t
has been moved to a public visibility in commit b3b4ffce
and the shared random subsystem uses it now as well.
Using a voting_schedule_free()
instead of tor_free()
would protect us in the case that we make voting_schedule_t
more complicated in the future.
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- David Goulet changed milestone to %Tor: 0.2.9.x-final in legacy/trac
changed milestone to %Tor: 0.2.9.x-final in legacy/trac
- David Goulet added component::core tor/tor in Legacy / Trac dirauth in Legacy / Trac easy in Legacy / Trac milestone::Tor: 0.2.9.x-final in Legacy / Trac points::0.1 in Legacy / Trac priority::very low in Legacy / Trac resolution::fixed in Legacy / Trac reviewer::dgoulet in Legacy / Trac severity::minor in Legacy / Trac status::closed in Legacy / Trac type::enhancement in Legacy / Trac labels
added component::core tor/tor in Legacy / Trac dirauth in Legacy / Trac easy in Legacy / Trac milestone::Tor: 0.2.9.x-final in Legacy / Trac points::0.1 in Legacy / Trac priority::very low in Legacy / Trac resolution::fixed in Legacy / Trac reviewer::dgoulet in Legacy / Trac severity::minor in Legacy / Trac status::closed in Legacy / Trac type::enhancement in Legacy / Trac labels
I tried to fix this. Here is my github branch: https://github.com/Jigsaw52/tor/tree/fix-19562
I named the argument of the voting_schedule_free as voting_schedule_to_free because naming it voting_schedule would shadow an existing variable on dirvote.c.
Trac:
Status: new to needs_review- Author Owner
For a public function that is non-static, I personally prefer having the object name before the action so
voting_schedule_free()
instead. Actually, in this case if we really want to be strict on the namespacing, we should do something likedirvote_voting_schedule_free()
(ordir_
) but I'll leave this decision to nickm on what he prefers (as the maintainer) :)Apart from naming, lgtm!
Trac:
Status: needs_review to merge_ready
Reviewer: N/A to dgoulet - Owner
If it's merge_ready we can take the time in 0.2.9. (it comes from a volunteer after all)
Trac:
Milestone: Tor: 0.2.??? to Tor: 0.2.9.x-final - Owner
Agreed with dgoulet; doing a search-and-replace then merging.
Trac:
Resolution: N/A to fixed
Status: merge_ready to closed - Trac closed
closed
- Trac changed time estimate to 48m
changed time estimate to 48m
- Trac moved from legacy/trac#19562 (moved)
moved from legacy/trac#19562 (moved)
- Trac added Feature First Contribution labels and removed 1 deleted label
added Feature First Contribution labels and removed 1 deleted label