if (j)
buf[off++] = ',';
if (nntp_data->newsrc_ent[j].first == nntp_data->newsrc_ent[j].last)
- snprintf(buf + off, buflen - off, "%d", nntp_data->newsrc_ent[j].first);
+ snprintf(buf + off, buflen - off, "%u", nntp_data->newsrc_ent[j].first);
else if (nntp_data->newsrc_ent[j].first < nntp_data->newsrc_ent[j].last)
- snprintf(buf + off, buflen - off, "%d-%d",
+ snprintf(buf + off, buflen - off, "%u-%u",
nntp_data->newsrc_ent[j].first, nntp_data->newsrc_ent[j].last);
off += strlen(buf + off);
}
buflen *= 2;
mutt_mem_realloc(&buf, buflen);
}
- snprintf(buf + off, buflen - off, "%s %d %d %c%s%s\n", nntp_data->group,
+ snprintf(buf + off, buflen - off, "%s %u %u %c%s%s\n", nntp_data->group,
nntp_data->last_message, nntp_data->first_message,
nntp_data->allowed ? 'y' : 'n', nntp_data->desc ? " " : "",
nntp_data->desc ? nntp_data->desc : "");
if (current >= nntp_data->first_message && current <= nntp_data->last_message)
continue;
- snprintf(buf, sizeof(buf), "%d", current);
+ snprintf(buf, sizeof(buf), "%u", current);
mutt_debug(2, "mutt_hcache_delete %s\n", buf);
mutt_hcache_delete(hc, buf, strlen(buf));
}
char buf[16];
/* try to replace with header from cache */
- snprintf(buf, sizeof(buf), "%d", anum);
+ snprintf(buf, sizeof(buf), "%u", anum);
void *hdata = mutt_hcache_fetch(fc->hc, buf, strlen(buf));
if (hdata)
{
if (!ctx->quiet)
mutt_message(_("Fetching list of articles..."));
if (nntp_data->nserv->hasLISTGROUPrange)
- snprintf(buf, sizeof(buf), "LISTGROUP %s %d-%d\r\n", nntp_data->group, first, last);
+ snprintf(buf, sizeof(buf), "LISTGROUP %s %u-%u\r\n", nntp_data->group, first, last);
else
snprintf(buf, sizeof(buf), "LISTGROUP %s\r\n", nntp_data->group);
rc = nntp_fetch_lines(nntp_data, buf, sizeof(buf), NULL, fetch_numbers, &fc);
if (fc.messages[current - first])
continue;
- snprintf(buf, sizeof(buf), "%d", current);
+ snprintf(buf, sizeof(buf), "%u", current);
if (nntp_data->bcache)
{
mutt_debug(2, "#1 mutt_bcache_del %s\n", buf);
mutt_progress_update(&fc.progress, current - first + 1, -1);
#ifdef USE_HCACHE
- snprintf(buf, sizeof(buf), "%d", current);
+ snprintf(buf, sizeof(buf), "%u", current);
#endif
/* delete header from cache that does not exist on server */
break;
}
- snprintf(buf, sizeof(buf), "HEAD %d\r\n", current);
+ snprintf(buf, sizeof(buf), "HEAD %u\r\n", current);
rc = nntp_fetch_lines(nntp_data, buf, sizeof(buf), NULL, fetch_tempfile, fp);
if (rc)
{
/* no such article */
if (nntp_data->bcache)
{
- snprintf(buf, sizeof(buf), "%d", current);
+ snprintf(buf, sizeof(buf), "%u", current);
mutt_debug(2, "#3 mutt_bcache_del %s\n", buf);
mutt_bcache_del(nntp_data->bcache, buf);
}
if (current <= last && rc == 0 && !nntp_data->deleted)
{
char *cmd = nntp_data->nserv->hasOVER ? "OVER" : "XOVER";
- snprintf(buf, sizeof(buf), "%s %d-%d\r\n", cmd, current, last);
+ snprintf(buf, sizeof(buf), "%s %u-%u\r\n", cmd, current, last);
rc = nntp_fetch_lines(nntp_data, buf, sizeof(buf), NULL, parse_overview_line, &fc);
if (rc > 0)
{
if (anum >= first && anum <= nntp_data->last_loaded)
messages[anum - first] = 1;
- snprintf(buf, sizeof(buf), "%d", anum);
+ snprintf(buf, sizeof(buf), "%u", anum);
hdata = mutt_hcache_fetch(hc, buf, strlen(buf));
if (hdata)
{
if (messages[anum - first])
continue;
- snprintf(buf, sizeof(buf), "%d", anum);
+ snprintf(buf, sizeof(buf), "%u", anum);
hdata = mutt_hcache_fetch(hc, buf, strlen(buf));
if (hdata)
{
cc.child = mutt_mem_malloc(sizeof(anum_t) * cc.max);
/* fetch numbers of child messages */
- snprintf(buf, sizeof(buf), "XPAT References %d-%d *%s*\r\n",
+ snprintf(buf, sizeof(buf), "XPAT References %u-%u *%s*\r\n",
nntp_data->first_message, nntp_data->last_loaded, msgid);
rc = nntp_fetch_lines(nntp_data, buf, sizeof(buf), NULL, fetch_children, &cc);
if (rc)