summaryrefslogtreecommitdiff
path: root/proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.c')
-rw-r--r--proxy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proxy.c b/proxy.c
index 9946240..6bf45df 100644
--- a/proxy.c
+++ b/proxy.c
@@ -276,12 +276,12 @@ void reset_info_block(proxy_peer *peer) {
276 * Multiple connections to/from the same ip are okay, if tracker_id doesn't match 276 * Multiple connections to/from the same ip are okay, if tracker_id doesn't match
277 * Reconnect attempts occur only twice a minute 277 * Reconnect attempts occur only twice a minute
278 */ 278 */
279static int g_connection_count; 279static size_t g_connection_count;
280static ot_time g_connection_reconn; 280static ot_time g_connection_reconn;
281static proxy_peer g_connections[MAX_PEERS]; 281static proxy_peer g_connections[MAX_PEERS];
282 282
283static void handle_reconnects(void) { 283static void handle_reconnects(void) {
284 int i; 284 size_t i;
285 for (i = 0; i < g_connection_count; ++i) 285 for (i = 0; i < g_connection_count; ++i)
286 if (PROXYPEER_NEEDSCONNECT(g_connections[i].state)) { 286 if (PROXYPEER_NEEDSCONNECT(g_connections[i].state)) {
287 int64 newfd = socket_tcp6(); 287 int64 newfd = socket_tcp6();
@@ -625,7 +625,7 @@ int main(int argc, char **argv) {
625static void *streamsync_worker(void *args) { 625static void *streamsync_worker(void *args) {
626 (void)args; 626 (void)args;
627 while (1) { 627 while (1) {
628 int bucket; 628 size_t bucket;
629 /* For each bucket... */ 629 /* For each bucket... */
630 for (bucket = 0; bucket < OT_BUCKET_COUNT; ++bucket) { 630 for (bucket = 0; bucket < OT_BUCKET_COUNT; ++bucket) {
631 /* Get exclusive access to that bucket */ 631 /* Get exclusive access to that bucket */