diff options
author | t3sserakt <t3ss@posteo.de> | 2023-05-02 13:13:14 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2023-05-02 13:13:14 +0200 |
commit | d5669e84fad7467da6f2df207bda15f3cd227b59 (patch) | |
tree | d021a1ce2da1891acd0803f26a99a9b234d73eaf | |
parent | 1e57b2d862d1a0286e0b28403a4073292133c156 (diff) | |
download | gnunet-d5669e84fad7467da6f2df207bda15f3cd227b59.tar.gz gnunet-d5669e84fad7467da6f2df207bda15f3cd227b59.zip |
TNG: Removed undefined variable and fixed formating issues
-rw-r--r-- | src/transport/gnunet-service-tng.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c index f2852c71a..e797a12a0 100644 --- a/src/transport/gnunet-service-tng.c +++ b/src/transport/gnunet-service-tng.c | |||
@@ -4522,7 +4522,7 @@ queue_send_msg (struct Queue *queue, | |||
4522 | pa = pa->next_pa; | 4522 | pa = pa->next_pa; |
4523 | pa->num_send++; | 4523 | pa->num_send++; |
4524 | } | 4524 | } |
4525 | //GNUNET_CONTAINER_multiuuidmap_get (pending_acks, &ack[i].ack_uuid.value); | 4525 | // GNUNET_CONTAINER_multiuuidmap_get (pending_acks, &ack[i].ack_uuid.value); |
4526 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 4526 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
4527 | "Sending message MID %lu of type %u (%u) and size %lu with MQ %p QID %lu\n", | 4527 | "Sending message MID %lu of type %u (%u) and size %lu with MQ %p QID %lu\n", |
4528 | GNUNET_ntohll (smt->mid), | 4528 | GNUNET_ntohll (smt->mid), |
@@ -5134,9 +5134,9 @@ consider_sending_fc (void *cls) | |||
5134 | fc.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_FLOW_CONTROL); | 5134 | fc.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_FLOW_CONTROL); |
5135 | fc.header.size = htons (sizeof(fc)); | 5135 | fc.header.size = htons (sizeof(fc)); |
5136 | fc.seq = htonl (vl->fc_seq_gen++); | 5136 | fc.seq = htonl (vl->fc_seq_gen++); |
5137 | fc.inbound_window_size = GNUNET_htonll (vl->incoming_fc_window_size + | 5137 | fc.inbound_window_size = GNUNET_htonll (vl->incoming_fc_window_size |
5138 | vl->incoming_fc_window_size_used + | 5138 | + vl->incoming_fc_window_size_used |
5139 | vl->incoming_fc_window_size_loss); | 5139 | + vl->incoming_fc_window_size_loss); |
5140 | fc.outbound_sent = GNUNET_htonll (vl->outbound_fc_window_size_used); | 5140 | fc.outbound_sent = GNUNET_htonll (vl->outbound_fc_window_size_used); |
5141 | fc.outbound_window_size = GNUNET_htonll (vl->outbound_fc_window_size); | 5141 | fc.outbound_window_size = GNUNET_htonll (vl->outbound_fc_window_size); |
5142 | fc.sender_time = GNUNET_TIME_absolute_hton (monotime); | 5142 | fc.sender_time = GNUNET_TIME_absolute_hton (monotime); |
@@ -10147,9 +10147,8 @@ transmit_on_queue (void *cls) | |||
10147 | // wait_multiplier = wait_multiplier * pm->vl->pending_msg_num; | 10147 | // wait_multiplier = wait_multiplier * pm->vl->pending_msg_num; |
10148 | 10148 | ||
10149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 10149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
10150 | "Wait multiplier %u num pending msg %u\n", | 10150 | "Wait multiplier %u\n", |
10151 | wait_multiplier, | 10151 | wait_multiplier); |
10152 | pm->vl->pending_msg_num); | ||
10153 | 10152 | ||
10154 | /* Message not finished, waiting for acknowledgement. | 10153 | /* Message not finished, waiting for acknowledgement. |
10155 | Update time by which we might retransmit 's' based on queue | 10154 | Update time by which we might retransmit 's' based on queue |
@@ -10843,7 +10842,7 @@ check_validation_request_pending (void *cls, | |||
10843 | if ((GNUNET_YES == vs->awaiting_queue) && | 10842 | if ((GNUNET_YES == vs->awaiting_queue) && |
10844 | (0 == strcmp (address_without_port_vs, address_without_port_q))) | 10843 | (0 == strcmp (address_without_port_vs, address_without_port_q))) |
10845 | { | 10844 | { |
10846 | 10845 | ||
10847 | vs->awaiting_queue = GNUNET_NO; | 10846 | vs->awaiting_queue = GNUNET_NO; |
10848 | validation_transmit_on_queue (q, vs); | 10847 | validation_transmit_on_queue (q, vs); |
10849 | success = GNUNET_NO; | 10848 | success = GNUNET_NO; |