diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-26 18:13:27 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-26 18:13:27 +0100 |
| commit | 78c3cebc389a2b0d426d74900a65b8656edb426d (patch) | |
| tree | 122003fecc6b53c2dde6393896a852e3689900ff /opentracker.c | |
| parent | 6837c5ac80e3624c6dc3a82d03e50d68b2f5a989 (diff) | |
Third run of making variable and function names more readable, integer scans and ip parsers
Diffstat (limited to 'opentracker.c')
| -rw-r--r-- | opentracker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c index f0f6404..7de6c6a 100644 --- a/opentracker.c +++ b/opentracker.c | |||
| @@ -379,10 +379,10 @@ void load_state(const char *const state_filename) { | |||
| 379 | continue; | 379 | continue; |
| 380 | i = 2 * sizeof(ot_hash); | 380 | i = 2 * sizeof(ot_hash); |
| 381 | 381 | ||
| 382 | if (inbuf[i++] != ':' || !(consumed = scan_udec(inbuf + i, &base, UINT64_MAX))) | 382 | if (inbuf[i++] != ':' || !(consumed = scan_uint(inbuf + i, &base, UINT64_MAX))) |
| 383 | continue; | 383 | continue; |
| 384 | i += consumed; | 384 | i += consumed; |
| 385 | if (inbuf[i++] != ':' || !(consumed = scan_udec(inbuf + i, &downcount, UINT64_MAX))) | 385 | if (inbuf[i++] != ':' || !(consumed = scan_uint(inbuf + i, &downcount, UINT64_MAX))) |
| 386 | continue; | 386 | continue; |
| 387 | add_torrent_from_saved_state(infohash, base, downcount); | 387 | add_torrent_from_saved_state(infohash, base, downcount); |
| 388 | } | 388 | } |
