ports/mail/balsa/files/patch-libbalsa_mailbox_local.c
Rodrigo Osorio 4c1fbd8d52 mail/balsa: Update to 2.6.4
Port changes:
    * Fix build
    * Add license
    * Make linters happy again

Changelog: https://github.com/GNOME/balsa/blob/master/NEWS

PR:		268734
Reported by:	<thomholwerda@osnews.com>
2023-06-10 18:16:25 +02:00

33 lines
1.3 KiB
C

--- libbalsa/mailbox_local.c.orig 2009-05-23 03:02:12 UTC
+++ libbalsa/mailbox_local.c
@@ -468,7 +468,7 @@
typedef struct {
GArray * array;
- guint (*fileno)(LibBalsaMailboxLocal * local, guint msgno);
+ guint (*sti_fileno)(LibBalsaMailboxLocal * local, guint msgno);
LibBalsaMailboxLocal *local;
} LibBalsaMailboxLocalSaveTreeInfo;
@@ -464,9 +464,9 @@ lbm_local_save_tree_item(guint msgno, gu
if (msgno == 0) {
info.msgno = msgno;
info.value.total = a;
- } else if (save_info->fileno) {
- info.msgno = save_info->fileno(save_info->local, msgno);
- info.value.parent = save_info->fileno(save_info->local, a);
+ } else if (save_info->sti_fileno) {
+ info.msgno = save_info->sti_fileno(save_info->local, msgno);
+ info.value.parent = save_info->sti_fileno(save_info->local, a);
} else {
info.msgno = msgno;
info.value.parent = a;
@@ -524,7 +524,7 @@ lbm_local_save_tree(LibBalsaMailboxLocal
return;
}
- save_info.fileno = LIBBALSA_MAILBOX_LOCAL_GET_CLASS(local)->fileno;
+ save_info.sti_fileno = LIBBALSA_MAILBOX_LOCAL_GET_CLASS(local)->sti_fileno;
save_info.local = local;
save_info.array =
g_array_new(FALSE, FALSE, sizeof(LibBalsaMailboxLocalTreeInfo));