From 4c783f80ab5f40cd58bd585b078ae8dacd8a7f99 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Mon, 28 May 2007 22:08:59 +0200 Subject: [PATCH] regressions Signed-off-by: Pierre Habouzit --- nntp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nntp.c b/nntp.c index 914df39..e6dbf40 100644 --- a/nntp.c +++ b/nntp.c @@ -234,12 +234,12 @@ static int nntp_parse_url(const char *server, ACCOUNT *act, char *group, m_strcpy(s, sizeof(s), server); url_parse_ciss(&url, s); - if (url.scheme != U_NNTP || url.scheme != U_NNTPS) + if (url.scheme != U_NNTP && url.scheme != U_NNTPS) return -1; act->has_ssl = (url.scheme == U_NNTPS); if (!act->port) { - act->port = act->has_ssl ? NNTP_PORT : NNTP_SSL_PORT; + act->port = act->has_ssl ? NNTP_SSL_PORT : NNTP_PORT; } m_strcpy(group, group_len, url.path); @@ -1047,7 +1047,7 @@ static int nntp_auth (nntp_server_t * serv) { CONNECTION *conn = serv->conn; char buf[STRING]; - unsigned char flags = conn->account.flags; + int flags = conn->account.flags; if (mutt_account_getuser(&conn->account) || !conn->account.user[0] || mutt_account_getpass(&conn->account) || !conn->account.pass[0]) { -- 2.20.1