[balsa] Cast gsize to unsigned long, to print with %lu
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Cast gsize to unsigned long, to print with %lu
- Date: Sat, 15 Apr 2017 01:29:49 +0000 (UTC)
commit b36ec16e5fcf1812efdcf8314eceb3e146b7476f
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Apr 14 21:17:20 2017 -0400
Cast gsize to unsigned long, to print with %lu
* libbalsa/mailbox_pop3.c (notify_progress),
(libbalsa_mailbox_pop3_check): cast gsize to unsigned long, to
print portably with %lu.
ChangeLog | 6 ++++++
libbalsa/mailbox_pop3.c | 5 +++--
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 30824e9..ca9c073 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-04-14 Peter Bloomfield <pbloomfield bellsouth net>
+
+ * libbalsa/mailbox_pop3.c (notify_progress),
+ (libbalsa_mailbox_pop3_check): cast gsize to unsigned long, to
+ print portably with %lu.
+
2017-04-13 Peter Bloomfield <pbloomfield bellsouth net>
* libbalsa/address-book-ldif.c (string_to_value_spec),
diff --git a/libbalsa/mailbox_pop3.c b/libbalsa/mailbox_pop3.c
index c7a1924..0003b32 100644
--- a/libbalsa/mailbox_pop3.c
+++ b/libbalsa/mailbox_pop3.c
@@ -377,7 +377,8 @@ notify_progress(const struct fetch_data *fd)
gchar *msgbuf;
recvbuf = libbalsa_size_to_gchar(fd->received);
- msgbuf = g_strdup_printf(_("Message %lu of %lu (%s of %s)"), fd->msgno, fd->total_messages, recvbuf,
fd->total_size_msg);
+ msgbuf = g_strdup_printf(_("Message %lu of %lu (%s of %s)"), (unsigned long) fd->msgno, (unsigned
long) fd->total_messages,
+ recvbuf, fd->total_size_msg);
g_free(recvbuf);
libbalsa_mailbox_progress_notify(LIBBALSA_MAILBOX(fd->mailbox), LIBBALSA_NTFY_PROGRESS, fd->received,
fd->total_size, msgbuf);
g_free(msgbuf);
@@ -645,7 +646,7 @@ libbalsa_mailbox_pop3_check(LibBalsaMailbox * mailbox)
fd.mailbox = mailbox;
fd.total_size_msg = libbalsa_size_to_gchar(fd.total_size);
- msgbuf = g_strdup_printf(_("%lu new messages (%s)"), fd.total_messages,
fd.total_size_msg);
+ msgbuf = g_strdup_printf(_("%lu new messages (%s)"), (unsigned long)
fd.total_messages, fd.total_size_msg);
libbalsa_mailbox_progress_notify(mailbox, LIBBALSA_NTFY_PROGRESS, 0, 1, msgbuf);
g_free(msgbuf);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]