From abee839f11addbff319272b40894cfa164f60949 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 9 Sep 2024 21:12:57 +0200 Subject: [PATCH] mailer: avoid a build issue with modern compilers --- src/account/imap4.c | 2 +- src/account/nntp.c | 2 +- src/account/pop3.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/account/imap4.c b/src/account/imap4.c index a4c646e..76f7d73 100644 --- a/src/account/imap4.c +++ b/src/account/imap4.c @@ -190,7 +190,7 @@ AccountConfig const _imap4_config[I4CV_COUNT + 1] = { "username", "Username", ACT_STRING, NULL }, { "password", "Password", ACT_PASSWORD, NULL }, { "hostname", "Server hostname", ACT_STRING, NULL }, - { "port", "Server port", ACT_UINT16, 143 }, + { "port", "Server port", ACT_UINT16, (void *)143 }, { "ssl", "Use SSL", ACT_BOOLEAN, 0 }, #if 0 /* XXX not implemented yet */ { "sent", "Sent mails folder", ACT_NONE, NULL }, diff --git a/src/account/nntp.c b/src/account/nntp.c index 9bf474c..ecd89c4 100644 --- a/src/account/nntp.c +++ b/src/account/nntp.c @@ -41,7 +41,7 @@ static AccountConfig const _nntp_config[] = { "username", "Username", ACT_STRING, NULL }, { "password", "Password", ACT_PASSWORD, NULL }, { "hostname", "Server hostname", ACT_STRING, NULL }, - { "port", "Server port", ACT_UINT16, 119 }, + { "port", "Server port", ACT_UINT16, (void *)119 }, { "ssl", "Use SSL", ACT_BOOLEAN, 0 }, { NULL, NULL, ACT_NONE, NULL } }; diff --git a/src/account/pop3.c b/src/account/pop3.c index e5203dc..71fddf3 100644 --- a/src/account/pop3.c +++ b/src/account/pop3.c @@ -154,7 +154,7 @@ static AccountConfig _pop3_config[P3CV_COUNT + 1] = { "username", "Username", ACT_STRING, NULL }, { "password", "Password", ACT_PASSWORD, NULL }, { "hostname", "Server hostname", ACT_STRING, NULL }, - { "port", "Server port", ACT_UINT16, 110 }, + { "port", "Server port", ACT_UINT16, (void *)110 }, { "ssl", "Use SSL", ACT_BOOLEAN, NULL }, { "delete", "Delete read mails on server", ACT_BOOLEAN, NULL },