Make control_event_conf_changed() take a smartlist of config_line_t
control_event_conf_changed() currently takes smartlist(k, v, k, v, …), which is an unexpected API.
We should change it so the keys and values are part of a config_line_t struct, and the smartlist contains config_line_t.
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- teor changed milestone to %Tor: 0.4.3.x-final
changed milestone to %Tor: 0.4.3.x-final
Trac:
Status: new to assigned
Cc: N/A to neel
Owner: N/A to neelPR: https://github.com/torproject/tor/pull/1558
Trac:
Status: assigned to needs_reviewTrac:
Milestone: Tor: unspecified to Tor: 0.4.3.x-finalTrac:
Reviewer: N/A to catalystReplying to neel:
PR: https://github.com/torproject/tor/pull/1558 Thanks! This mostly looks good.
config_line_t
is already a linked list; why not pass that linked list tocontrol_event_conf_changed()
instead of repackaging it into a smartlist? That seems to me like it would be simpler.Trac:
Status: needs_review to needs_revisionNew PR using
config_line_t
: https://github.com/torproject/tor/pull/1570Trac:
Status: needs_revision to needs_reviewReplying to neel:
New PR using
config_line_t
: https://github.com/torproject/tor/pull/1570 Thanks! That looks simpler. I made some comments on that pull request, mostly about minor things. Note that currently the pull request fails Travis due to a memory leak that I describe in the comments.Please feel free to force-push this pull request with your updates.
Trac:
Status: needs_review to needs_revisionFixed it.
Trac:
Status: needs_revision to needs_reviewI found a few issues with this patch:
- the function comment for control_event_conf_changed() was not updated
- the "elements" argument name is now confusing
- the extra include in control_events.h could be replaced with a struct forward declaration
I also found a few issues in control_event_conf_changed() unrelated to this patch:
- the function comment has not been maintained, even before this PR
- the return value is always the same, and it is not checked by the caller
I fixed these issues in this PR:
These are all obviously correct minor changes, so any merger can merge after it passes CI.
Trac:
Keywords: extra-review deleted, extra-review-completed added
Actualpoints: N/A to 0.1
Reviewer: catalyst to catalyst, teor- Trac closed
closed
- Trac changed time estimate to 4h
changed time estimate to 4h
- Trac added 48m of time spent
added 48m of time spent
- Trac moved to tpo/core/tor#31531 (closed)
moved to tpo/core/tor#31531 (closed)