[balsa/gtk4] fix build error on macOS



commit bdb73ac0f6fb902411f76b9117a42c8e1b82a113
Author: Albrecht Dreß <albrecht dress netcologne de>
Date:   Sat Apr 10 18:47:17 2021 +0200

    fix build error on macOS
    
    add casts for off_t variables which are long long on macOS
    
    Signed-off-by: Albrecht Dreß <albrecht dress arcor de>

 libbalsa/mailbox_mbox.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libbalsa/mailbox_mbox.c b/libbalsa/mailbox_mbox.c
index aa7317bee..ba6475e7a 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -688,7 +688,7 @@ libbalsa_mailbox_mbox_open(LibBalsaMailbox * mailbox, GError **err)
 
     mbox->size = st.st_size;
     g_debug("%s %s set size from stat %ld", __func__, libbalsa_mailbox_get_name(mailbox),
-            mbox->size);
+            (long) mbox->size);
     libbalsa_mailbox_set_mtime(mailbox, st.st_mtime);
     mbox->gmime_stream = gmime_stream;
 
@@ -957,7 +957,7 @@ libbalsa_mailbox_mbox_check(LibBalsaMailbox * mailbox)
         libbalsa_mailbox_set_mtime(mailbox, st.st_mtime);
        mbox->size = st.st_size;
         g_debug("%s %s set size from stat %ld", __func__, libbalsa_mailbox_get_name(mailbox),
-                mbox->size);
+                (long) mbox->size);
        return;
     }
     if (st.st_mtime == mtime && st.st_size == mbox->size)
@@ -972,7 +972,7 @@ libbalsa_mailbox_mbox_check(LibBalsaMailbox * mailbox)
        /* Cache the file size, so we don't check the next time. */
        mbox->size = st.st_size;
         g_debug("%s %s set size from stat %ld", __func__, libbalsa_mailbox_get_name(mailbox),
-                mbox->size);
+                (long) mbox->size);
        return;
     }
 
@@ -1057,7 +1057,7 @@ libbalsa_mailbox_mbox_check(LibBalsaMailbox * mailbox)
     parse_mailbox(mbox);
     mbox->size = g_mime_stream_tell(mbox_stream);
     g_debug("%s %s set size from tell %ld", __func__, libbalsa_mailbox_get_name(mailbox),
-            mbox->size);
+            (long) mbox->size);
     libbalsa_mime_stream_shared_unlock(mbox_stream);
     mbox_unlock(mailbox, mbox_stream);
 
@@ -1562,7 +1562,7 @@ libbalsa_mailbox_mbox_sync(LibBalsaMailbox * mailbox, gboolean expunge)
     else if (g_mime_stream_write_to_stream(temp_stream, mbox_stream) != -1) {
         mbox->size = g_mime_stream_tell(mbox_stream);
         g_debug("%s %s set size from tell %ld", __func__, libbalsa_mailbox_get_name(mailbox),
-                mbox->size);
+                (long) mbox->size);
         if (ftruncate(GMIME_STREAM_FS(mbox_stream)->fd, mbox->size) == 0)
             save_failed = FALSE;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]