diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-09-01 15:58:40 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-09-01 15:58:40 +0000 |
commit | 2a575a970197b530377f266bf02e5b970008e421 (patch) | |
tree | 3949ab4e23b758d8aca8707bb66484609d742364 | |
parent | 348ec01dd1462df2b707027b65e39b78b3dd0e10 (diff) |
Fix a couple of possible compilation warnings. (Noted by "John C.
Place" <placej@ctcdist.com>.)
-rw-r--r-- | curs_lib.c | 6 | ||||
-rw-r--r-- | edit.c | 2 | ||||
-rw-r--r-- | hdrline.c | 2 | ||||
-rw-r--r-- | sendlib.c | 2 |
4 files changed, 6 insertions, 6 deletions
@@ -133,8 +133,8 @@ void mutt_edit_file (const char *editor, const char *data) 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, @@ -161,7 +161,7 @@ int mutt_yesorno (const char *msg, int def) BEEP(); } } - addstr (def ? yes : no); + addstr ((char *) (def ? yes : no)); mutt_refresh (); return (def); } @@ -96,7 +96,7 @@ be_snarf_file (const char *path, char **buf, int *max, int *len, int verbose) 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); @@ -508,7 +508,7 @@ hdr_format_str (char *dest, else if (is_index && threads) snprintf (dest, destlen, buf2, " "); else - snprintf (dest, destlen, ""); + *dest = '\0'; } else { @@ -1174,7 +1174,7 @@ char *mutt_make_date (char *s, size_t len) 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); } |