]> git.ipfire.org Git - thirdparty/git.git/commit - imap-send.c
imap-send: drop unused parameter from imap_cmd_cb callback
authorJeff King <peff@peff.net>
Mon, 3 Jul 2023 06:34:02 +0000 (02:34 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Jul 2023 17:16:53 +0000 (10:16 -0700)
commitec9e358a4a1a0f5513d57f5447d43e31a508dd17
treef132e0610ee9154eef0ae17ead154ef9d2c29566
parent84d689a810842c44d95ac759d39702dfa170093b
imap-send: drop unused parameter from imap_cmd_cb callback

There's a generic callback mechanism for handling plus-continuation of
IMAP commands. It takes the imap_cmd struct itself as an argument. That
seems reasonable, and in a larger imap-using program it might be used.
But in imap-send, we have only one such callback (auth_cram_md5) and it
doesn't use this value, triggering -Wunused-parameter warnings.

We could just mark the parameter as UNUSED. But since this is the only
such function, and because we are not likely to share code with the
upstream isync anymore, we can just simplify the interface to remove
this parameter.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c