*/
void nntp_group_unread_stat(struct NntpData *nntp_data)
{
- anum_t first, last;
-
nntp_data->unread = 0;
if (nntp_data->last_message == 0 || nntp_data->first_message > nntp_data->last_message)
return;
nntp_data->unread = nntp_data->last_message - nntp_data->first_message + 1;
for (unsigned int i = 0; i < nntp_data->newsrc_len; i++)
{
- first = nntp_data->newsrc_ent[i].first;
+ anum_t first = nntp_data->newsrc_ent[i].first;
if (first < nntp_data->first_message)
first = nntp_data->first_message;
- last = nntp_data->newsrc_ent[i].last;
+ anum_t last = nntp_data->newsrc_ent[i].last;
if (last > nntp_data->last_message)
last = nntp_data->last_message;
if (first <= last)
char buf[16];
bool old = false;
void *hdata = NULL;
- anum_t first, last, current;
+ anum_t first, last;
if (!hc)
return;
nntp_data->last_cached = last;
/* clean removed headers from cache */
- for (current = first; current <= last; current++)
+ for (anum_t current = first; current <= last; current++)
{
if (current >= nntp_data->first_message && current <= nntp_data->last_message)
continue;