diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-04-03 01:40:39 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-04-03 01:40:39 +0200 |
| commit | e4eb716d2688f5c2d4615d79ad5f4f1eb50a9343 (patch) | |
| tree | 5612056173478fecaad0a030195b6ed2f399df4d /proxy.c | |
| parent | b20b0b89264e9d28ab873b8b1cc9ba73cdb58aeb (diff) | |
turn all int offsets into size_t
Diffstat (limited to 'proxy.c')
| -rw-r--r-- | proxy.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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 | */ |
| 279 | static int g_connection_count; | 279 | static size_t g_connection_count; |
| 280 | static ot_time g_connection_reconn; | 280 | static ot_time g_connection_reconn; |
| 281 | static proxy_peer g_connections[MAX_PEERS]; | 281 | static proxy_peer g_connections[MAX_PEERS]; |
| 282 | 282 | ||
| 283 | static void handle_reconnects(void) { | 283 | static 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) { | |||
| 625 | static void *streamsync_worker(void *args) { | 625 | static 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 */ |
