diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-25 07:27:29 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-25 07:27:29 +0200 |
commit | 1c29e992b9c7d17a4e0ca2c394fdf605706c961f (patch) | |
tree | b18a3aa23b54aa4ba4dade24d1ae2b15ec0e1185 /src/feeds.c | |
parent | e6a1ff50654f251d6f7b495e46d78d48a0f2a754 (diff) |
Cleanup
Warnings about lost precision.
Diffstat (limited to 'src/feeds.c')
-rw-r--r-- | src/feeds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/feeds.c b/src/feeds.c index b7ce739b..7fe13617 100644 --- a/src/feeds.c +++ b/src/feeds.c | |||
@@ -437,7 +437,7 @@ static iThreadResult fetch_Feeds_(iThread *thread) { | |||
437 | iZap(work); | 437 | iZap(work); |
438 | iBool gotNew = iFalse; | 438 | iBool gotNew = iFalse; |
439 | postCommand_App("feeds.update.started"); | 439 | postCommand_App("feeds.update.started"); |
440 | const int totalJobs = size_PtrArray(&d->jobs); | 440 | const size_t totalJobs = size_PtrArray(&d->jobs); |
441 | int numFinishedJobs = 0; | 441 | int numFinishedJobs = 0; |
442 | while (!d->stopWorker) { | 442 | while (!d->stopWorker) { |
443 | /* Start new jobs. */ | 443 | /* Start new jobs. */ |
@@ -476,7 +476,7 @@ static iThreadResult fetch_Feeds_(iThread *thread) { | |||
476 | } | 476 | } |
477 | } | 477 | } |
478 | if (doNotify) { | 478 | if (doNotify) { |
479 | postCommandf_App("feeds.update.progress arg:%d total:%d", numFinishedJobs, totalJobs); | 479 | postCommandf_App("feeds.update.progress arg:%d total:%zu", numFinishedJobs, totalJobs); |
480 | } | 480 | } |
481 | /* Stop if everything has finished. */ | 481 | /* Stop if everything has finished. */ |
482 | if (ongoing == 0 && isEmpty_PtrArray(&d->jobs)) { | 482 | if (ongoing == 0 && isEmpty_PtrArray(&d->jobs)) { |
@@ -614,7 +614,7 @@ static void load_Feeds_(iFeeds *d) { | |||
614 | /* TODO: Cleanup needed... | 614 | /* TODO: Cleanup needed... |
615 | All right, this could maybe use a bit more robust, structured format. | 615 | All right, this could maybe use a bit more robust, structured format. |
616 | The code below is messy. */ | 616 | The code below is messy. */ |
617 | const uint32_t feedId = strtoul(line.start, NULL, 16); | 617 | const uint32_t feedId = (uint32_t) strtoul(line.start, NULL, 16); |
618 | if (!nextSplit_Rangecc(range_Block(src), "\n", &line)) { | 618 | if (!nextSplit_Rangecc(range_Block(src), "\n", &line)) { |
619 | goto aborted; | 619 | goto aborted; |
620 | } | 620 | } |