isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit f4ed8b27f655dce472e818f1dc592842b65deea5
parent f5d234ffa15da1c371784fde827c4d5a3f4864d1
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sun, 26 Dec 2021 19:11:17 +0100

fold superfluous INIT_IMAP_CMD_X() macro

it's been identical to INIT_IMAP_CMD() since c3d91ae1.

Diffstat:
Msrc/drv_imap.c | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c @@ -289,11 +289,6 @@ new_imap_cmd( uint size ) cmdp->callback = cb; \ cmdp->callback_aux = aux; -#define INIT_IMAP_CMD_X(type, cmdp, cb, aux) \ - cmdp = (type *)new_imap_cmd( sizeof(*cmdp) ); \ - cmdp->callback = cb; \ - cmdp->callback_aux = aux; - static void done_imap_cmd( imap_store_t *ctx, imap_cmd_t *cmd, int response ) { @@ -3002,7 +2997,7 @@ imap_fetch_msg( store_t *ctx, message_t *msg, msg_data_t *data, int minimal, { imap_cmd_fetch_msg_t *cmd; - INIT_IMAP_CMD_X(imap_cmd_fetch_msg_t, cmd, cb, aux) + INIT_IMAP_CMD(imap_cmd_fetch_msg_t, cmd, cb, aux) cmd->param.uid = msg->uid; cmd->msg_data = data; data->data = NULL;