Fix a warning about a shadowed global

This commit is contained in:
Nick Mathewson 2017-05-09 07:25:52 -04:00
parent ef2248d09b
commit 7751df61ca

View File

@ -402,10 +402,10 @@ channelpadding_send_padding_cell_for_callback(channel_t *chan)
*/ */
static void static void
channelpadding_send_padding_callback(tor_timer_t *timer, void *args, channelpadding_send_padding_callback(tor_timer_t *timer, void *args,
const struct monotime_t *time) const struct monotime_t *when)
{ {
channel_t *chan = channel_handle_get((struct channel_handle_t*)args); channel_t *chan = channel_handle_get((struct channel_handle_t*)args);
(void)timer; (void)time; (void)timer; (void)when;
if (chan && CHANNEL_CAN_HANDLE_CELLS(chan)) { if (chan && CHANNEL_CAN_HANDLE_CELLS(chan)) {
/* Hrmm.. It might be nice to have an equivalent to assert_connection_ok /* Hrmm.. It might be nice to have an equivalent to assert_connection_ok