summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-09-01 15:58:40 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-09-01 15:58:40 +0000
commit2a575a970197b530377f266bf02e5b970008e421 (patch)
tree3949ab4e23b758d8aca8707bb66484609d742364
parent348ec01dd1462df2b707027b65e39b78b3dd0e10 (diff)
Fix a couple of possible compilation warnings. (Noted by "John C.
Place" <placej@ctcdist.com>.)
-rw-r--r--curs_lib.c6
-rw-r--r--edit.c2
-rw-r--r--hdrline.c2
-rw-r--r--sendlib.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/curs_lib.c b/curs_lib.c
index f9f50f68..182f30bc 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -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);
}
diff --git a/edit.c b/edit.c
index de7b0254..9d471c96 100644
--- a/edit.c
+++ b/edit.c
@@ -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);
diff --git a/hdrline.c b/hdrline.c
index 4c628182..1a3e782d 100644
--- a/hdrline.c
+++ b/hdrline.c
@@ -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
{
diff --git a/sendlib.c b/sendlib.c
index af530c2b..f407757c 100644
--- a/sendlib.c
+++ b/sendlib.c
@@ -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);
}