int mutt_yesorno (const char *msg, int def)
{
event_t ch;
- char *yes = _("yes");
- char *no = _("no");
+ unsigned char *yes = (unsigned char *) _("yes");
+ unsigned char *no = (unsigned char *) _("no");
CLEARLINE(LINES-1);
printw("%s ([%c]/%c): ", msg, def ? *yes : *no,
BEEP();
}
}
- addstr (def ? yes : no);
+ addstr ((char *) (def ? yes : no));
mutt_refresh ();
return (def);
}
buf = be_snarf_data (f, buf, max, len, 0, sb.st_size, 0);
if (verbose)
{
- snprintf(tmp, sizeof(tmp), "\"%s\" %d bytes\n", path, sb.st_size);
+ snprintf(tmp, sizeof(tmp), "\"%s\" %lu bytes\n", path, (unsigned long) sb.st_size);
addstr(tmp);
}
fclose (f);
else if (is_index && threads)
snprintf (dest, destlen, buf2, " ");
else
- snprintf (dest, destlen, "");
+ *dest = '\0';
}
else
{
snprintf (s, len, "Date: %s, %d %s %d %02d:%02d:%02d %+03d%02d\n",
Weekdays[l->tm_wday], l->tm_mday, Months[l->tm_mon],
l->tm_year + 1900, l->tm_hour, l->tm_min, l->tm_sec,
- tz / 60, abs (tz) % 60);
+ (int) tz / 60, (int) abs (tz) % 60);
return (s);
}