And other format warning less
authorRicardo Mones <ricardo@mones.org>
Sat, 6 Jun 2015 01:09:31 +0000 (03:09 +0200)
committerRicardo Mones <ricardo@mones.org>
Sat, 6 Jun 2015 01:09:31 +0000 (03:09 +0200)
• imap.c:4832:8: warning: format ‘%d’ expects argument of type ‘int’,
  but argument 9 has type ‘time_t’ [-Wformat=]

src/imap.c

index 81c4bb00340c39ca3e5eff4c55fafaf60c478d27..606da6413d7154766329027a0b48e73ffe4ccceb 100644 (file)
@@ -4827,9 +4827,9 @@ gboolean imap_scan_required(Folder *folder, FolderItem *_item)
                debug_print("exists %d, item->item.total_msgs %d\n"
                            "\tunseen %d, item->item.unread_msgs %d\n"
                            "\tuid_next %d, item->uid_next %d\n"
-                           "\tuid_val %d, item->item.mtime %d\n", 
-                           exists, item->item.total_msgs,unseen, item->item.unread_msgs,
-                           uid_next, item->uid_next,uid_val, item->item.mtime);
+                           "\tuid_val %d, item->item.mtime %ld\n",
+                           exists, item->item.total_msgs, unseen, item->item.unread_msgs,
+                           uid_next, item->uid_next, uid_val, (long)(item->item.mtime));
                if (exists != item->item.total_msgs
                    || unseen != item->item.unread_msgs 
                    || uid_next != item->uid_next