From e7e47e77a3886c258368a14a8c0bb393280aac64 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 2 Jun 2012 00:32:19 +0200 Subject: [PATCH] NoticeAuth: Fix test if IDENT reply has been invalid MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes conn.c: In function ‘cb_Read_Resolver_Result’: conn.c:2252: warning: comparison between pointer and integer --- src/ngircd/conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 4d778719..09f726ca 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -2249,7 +2249,7 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events ) if (Conf_NoticeAuth) { (void)Conn_WriteStr(i, "NOTICE AUTH :*** Got %sident response", - *ptr == NULL ? "" : "invalid "); + *ptr ? "invalid " : ""); } } else { Log(LOG_INFO, "IDENT lookup for connection %d: no result.", i); -- 2.39.2