aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-01-11 10:28:20 -0500
committerNick Mathewson <nickm@torproject.org>2012-01-11 10:28:20 -0500
commitc5b58df77588fd1307d248e75d360eb27023033c (patch)
treef623990af1f5dcbd975b2390250fa42dc3cf5ecc /src/or/circuituse.c
parent0e911abf27c7a7ede6dea81167c6e8b12b53174c (diff)
downloadtor-c5b58df77588fd1307d248e75d360eb27023033c.tar.gz
tor-c5b58df77588fd1307d248e75d360eb27023033c.zip
Add clarity/typesafety wrappers for control_event_circuit_status_minor
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 55ec88a33f..442798dbb5 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -1228,8 +1228,7 @@ circuit_launch_by_extend_info(uint8_t purpose,
* began. */
tor_gettimeofday(&circ->_base.timestamp_created);
- control_event_circuit_status_minor(circ, CIRC_MINOR_EVENT_CANNIBALIZED,
- (int)old_purpose,
+ control_event_circuit_cannibalized(circ, old_purpose,
&old_timestamp_created);
switch (purpose) {
@@ -1965,9 +1964,8 @@ circuit_change_purpose(circuit_t *circ, uint8_t new_purpose)
circ->purpose = new_purpose;
if (CIRCUIT_IS_ORIGIN(circ)) {
- control_event_circuit_status_minor(TO_ORIGIN_CIRCUIT(circ),
- CIRC_MINOR_EVENT_PURPOSE_CHANGED,
- (int)old_purpose, NULL);
+ control_event_circuit_purpose_changed(TO_ORIGIN_CIRCUIT(circ),
+ old_purpose);
}
}