From: Marco Bettini Date: Fri, 6 May 2022 15:24:31 +0000 (+0000) Subject: doveadm: Remove doveadm_mail_cmd_context::args X-Git-Tag: 2.4.0~4003 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d89d3acc19cbd64754a36d31c775cb8520a6742a;p=thirdparty%2Fdovecot%2Fcore.git doveadm: Remove doveadm_mail_cmd_context::args --- diff --git a/src/doveadm/doveadm-mail.c b/src/doveadm/doveadm-mail.c index 10b4d99114..9768b9c501 100644 --- a/src/doveadm/doveadm-mail.c +++ b/src/doveadm/doveadm-mail.c @@ -973,10 +973,7 @@ doveadm_cmd_ver2_to_mail_cmd_wrapper(struct doveadm_cmd_context *cctx) array_append_zero(&pargv); /* All the -parameters need to be included in full_args so that they're sent to doveadm-server. */ - unsigned int args_pos = array_count(&full_args); array_append_array(&full_args, &pargv); - - mctx->args = array_idx(&full_args, args_pos); mctx->full_args = array_front(&full_args); doveadm_mail_cmd_exec(mctx, wildcard_user); diff --git a/src/doveadm/doveadm-mail.h b/src/doveadm/doveadm-mail.h index ebbbbd56bc..691af6891b 100644 --- a/src/doveadm/doveadm-mail.h +++ b/src/doveadm/doveadm-mail.h @@ -63,7 +63,6 @@ struct doveadm_mail_cmd_context { pool_t pool; struct doveadm_cmd_context *cctx; const struct doveadm_mail_cmd *cmd; - const char *const *args; /* args including -options */ const char *const *full_args;