From: Alexander Barton Date: Fri, 1 Jun 2012 22:32:19 +0000 (+0200) Subject: NoticeAuth: Fix test if IDENT reply has been invalid X-Git-Tag: rel-19.2-rc1~6 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=e7e47e77a3886c258368a14a8c0bb393280aac64 NoticeAuth: Fix test if IDENT reply has been invalid This fixes conn.c: In function ‘cb_Read_Resolver_Result’: conn.c:2252: warning: comparison between pointer and integer --- 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);