From 676b414d54f37800c4e5eb4bad4d70640af479a8 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Tue, 16 May 2017 14:18:27 +0100 Subject: [PATCH] replace 'imap_auth_t' with 'struct ImapAuth' --- imap/auth.c | 4 ++-- imap/auth.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/imap/auth.c b/imap/auth.c index c0edb340d..2ba1cd9af 100644 --- a/imap/auth.c +++ b/imap/auth.c @@ -24,7 +24,7 @@ #include "mutt.h" #include "auth.h" -static const imap_auth_t imap_authenticators[] = { +static const struct ImapAuth imap_authenticators[] = { { imap_auth_plain, "plain" }, #ifdef USE_SASL { imap_auth_sasl, NULL }, @@ -47,7 +47,7 @@ static const imap_auth_t imap_authenticators[] = { * authentication method if specified, or any. */ int imap_authenticate(IMAP_DATA *idata) { - const imap_auth_t *authenticator = NULL; + const struct ImapAuth *authenticator = NULL; char *methods = NULL; char *method = NULL; char *delim = NULL; diff --git a/imap/auth.h b/imap/auth.h index 461bb6ce2..335ebcc24 100644 --- a/imap/auth.h +++ b/imap/auth.h @@ -28,14 +28,14 @@ typedef enum { } imap_auth_res_t; -typedef struct +struct ImapAuth { /* do authentication, using named method or any available if method is NULL */ imap_auth_res_t (*authenticate)(IMAP_DATA *idata, const char *method); /* name of authentication method supported, NULL means variable. If this * is not null, authenticate may ignore the second parameter. */ const char *method; -} imap_auth_t; +}; /* external authenticator prototypes */ imap_auth_res_t imap_auth_plain(IMAP_DATA *idata, const char *method); -- 2.40.0