aboutsummaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-03-24 15:58:11 +0000
committerNick Mathewson <nickm@torproject.org>2007-03-24 15:58:11 +0000
commitda6bd21b72153b84a4c6831467d956ddd86f2532 (patch)
tree4d411800eb8f1c827ccf983332c77b41b0d491c0 /src/or/command.c
parent306d5400c367460936523f8417102f043a98fa78 (diff)
downloadtor-da6bd21b72153b84a4c6831467d956ddd86f2532.tar.gz
tor-da6bd21b72153b84a4c6831467d956ddd86f2532.zip
r12644@0-41-wifi: nickm | 2007-03-23 16:02:23 -0400
Eliminate more redundant circuit_t arguments when edge_connection_t is already supplied and the circuit is already attached. svn:r9900
Diffstat (limited to 'src/or/command.c')
-rw-r--r--src/or/command.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/command.c b/src/or/command.c
index e771a8e321..e278725e8f 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -291,8 +291,9 @@ command_process_created_cell(cell_t *cell, or_connection_t *conn)
} else { /* pack it into an extended relay cell, and send it. */
log_debug(LD_OR,
"Converting created cell to extended relay cell, sending.");
- connection_edge_send_command(NULL, circ, RELAY_COMMAND_EXTENDED,
- cell->payload, ONIONSKIN_REPLY_LEN);
+ relay_send_command_from_edge(0, circ, RELAY_COMMAND_EXTENDED,
+ cell->payload, ONIONSKIN_REPLY_LEN,
+ NULL);
}
}
@@ -383,8 +384,8 @@ command_process_destroy_cell(cell_t *cell, or_connection_t *conn)
char payload[1];
log_debug(LD_OR, "Delivering 'truncated' back.");
payload[0] = (char)reason;
- connection_edge_send_command(NULL, circ, RELAY_COMMAND_TRUNCATED,
- payload, sizeof(payload));
+ relay_send_command_from_edge(0, circ, RELAY_COMMAND_TRUNCATED,
+ payload, sizeof(payload), NULL);
}
}
}