summaryrefslogtreecommitdiff
path: root/mh/repl.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-01-20 16:28:58 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-01-20 16:28:58 +0000
commitd44a6c72504c8804e7e3763f9453e0232eb1b472 (patch)
tree2458b1a634dcb90d39851e2f4565d79a3d3b0576 /mh/repl.c
parent3a94393a1c124d35e2f82a7c373e12938471ba2b (diff)
downloadmailutils-d44a6c72504c8804e7e3763f9453e0232eb1b472.tar.gz
mailutils-d44a6c72504c8804e7e3763f9453e0232eb1b472.tar.bz2
Use mu_umaxtostr to format size_t and off_t values
Diffstat (limited to 'mh/repl.c')
-rw-r--r--mh/repl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mh/repl.c b/mh/repl.c
index ee54cfe63..c1decd720 100644
--- a/mh/repl.c
+++ b/mh/repl.c
@@ -277,10 +277,10 @@ make_draft (mu_mailbox_t mbox, int disp, struct mh_whatnow_env *wh)
disp = DISP_USE;
else
{
- printf (ngettext ("Draft \"%s\" exists (%lu byte).\n",
- "Draft \"%s\" exists (%lu bytes).\n",
- st.st_size),
- wh->draftfile, (unsigned long) st.st_size);
+ printf (ngettext ("Draft \"%s\" exists (%s byte).\n",
+ "Draft \"%s\" exists (%s bytes).\n",
+ (unsigned long) st.st_size),
+ wh->draftfile, mu_umaxtostr (0, st.st_size));
disp = mh_disposition (wh->draftfile);
}
}
@@ -304,8 +304,8 @@ make_draft (mu_mailbox_t mbox, int disp, struct mh_whatnow_env *wh)
rc = mu_mailbox_get_message (mbox, msgset.list[0], &msg);
if (rc)
{
- mh_error (_("Cannot read message %lu: %s"),
- (unsigned long) msgset.list[0],
+ mh_error (_("Cannot read message %s: %s"),
+ mu_umaxtostr (0, msgset.list[0]),
mu_strerror (rc));
exit (1);
}
@@ -360,7 +360,7 @@ make_draft (mu_mailbox_t mbox, int disp, struct mh_whatnow_env *wh)
mu_mailbox_get_url (mbox, &url);
mh_message_number (msg, &num);
- asprintf (&msgname, "%s/%lu", mu_url_to_string (url), (unsigned long) num);
+ asprintf (&msgname, "%s/%s", mu_url_to_string (url), mu_umaxtostr (0, num));
p = strchr (msgname, ':');
if (!p)
wh->msg = msgname;

Return to:

Send suggestions and report system problems to the System administrator.