From 267cba39c8004bd5995ddcdddf365788b9e9f990 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Tue, 30 Jan 2024 21:48:36 -0700 Subject: [PATCH] * Fix some compiler warnings for bad casting in some functions in the file alpine/imap.c. --- alpine/imap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alpine/imap.c b/alpine/imap.c index c55b09c..511e290 100644 --- a/alpine/imap.c +++ b/alpine/imap.c @@ -1137,7 +1137,7 @@ mm_login_oauth2(NETMBX *mb, char *user, char *method, #ifdef LOCAL_PASSWD_CACHE /* if requested, remember it on disk for next session */ if(save_password && F_OFF(F_DISABLE_PASSWORD_FILE_SAVING,ps_global)) - set_passfile_passwd_auth(ps_global->pinerc, token, + set_passfile_passwd_auth(ps_global->pinerc, &token, altuserforcache ? altuserforcache : user, hostlist, (mb->sslflag||mb->tlsflag), (preserve_password == -1 ? 0 @@ -2135,7 +2135,7 @@ mm_login_work(NETMBX *mb, char *user, char **pwd, long int trial, #ifdef LOCAL_PASSWD_CACHE /* if requested, remember it on disk for next session */ if(save_password && F_OFF(F_DISABLE_PASSWORD_FILE_SAVING,ps_global)) - set_passfile_passwd(ps_global->pinerc, *pwd, + set_passfile_passwd(ps_global->pinerc, pwd, altuserforcache ? altuserforcache : user, hostlist, (mb->sslflag||mb->tlsflag), (preserve_password == -1 ? 0 @@ -4345,7 +4345,7 @@ set_passfile_passwd_auth(char *pinerc, char **passwd, char *user, STRLIST_S *hos || already_prompted == 1) && !ps_global->nowrite_password_cache && (mm_login_list || read_passfile(pinerc, &mm_login_list))){ - imap_set_passwd_auth(&mm_login_list, passwd, user, hostlist, altflag, 0, 0, authtype); + imap_set_passwd_auth(&mm_login_list, *passwd, user, hostlist, altflag, 0, 0, authtype); write_passfile(pinerc, mm_login_list); } } -- 2.11.4.GIT