• Patch: Elm ME+ 2.5 PLalpha49 -> Elm ME+ 2.5 PLalpha50 [5/7] (4/4)

    From Kari Hurtta@21:1/5 to All on Mon Jun 10 20:55:12 2019
    [continued from previous message]

    S_(mt_free_mailbox mt_free_duplicate)
    ! static void mt_free_duplicate P_((struct MailboxView *mbx));
    ! static void mt_free_duplicate(mbx)
    struct MailboxView *mbx;
    {
    if (mbx->u.duplicate->magic != MV_DUPLICATE_magic)
    panic("MBX VIEW PANIC",__FILE__,__LINE__,"mt_free_duplicate",
    "Bad magic number",0);
    --- 221,234 ----
    }

    S_(mt_free_mailbox mt_free_duplicate)
    ! static int mt_free_duplicate P_((struct MailboxView *mbx,
    ! struct cancel_data *cd));
    ! static int mt_free_duplicate(mbx,cd)
    struct MailboxView *mbx;
    + struct cancel_data *cd;
    {
    + int ret = 1;
    +
    if (mbx->u.duplicate->magic != MV_DUPLICATE_magic)
    panic("MBX VIEW PANIC",__FILE__,__LINE__,"mt_free_duplicate",
    "Bad magic number",0);
    ***************
    *** 252,257 ****
    --- 256,266 ----

    free(mbx->u.duplicate);
    mbx->u.duplicate = NULL;
    +
    + DPRINT(Debug,10,(&Debug,
    + "mt_free_duplicate=%d\n",
    + ret));
    + return ret;
    }


    ***************
    *** 276,350 ****

    static void mt_make_duplicate_view P_((struct MailboxView *mailbox));

    - static int addr_is_same P_((struct addr_list *a1, struct addr_list *a2));
    - static int addr_is_same(a1,a2)
    - struct addr_list *a1;
    - struct addr_list *a2;
    - {
    - int len = addr_list_item_count(a1);
    -