Module: ngircd.git Branch: master Commit: e7e47e77a3886c258368a14a8c0bb393280aac64 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=e7e47...
Author: Alexander Barton alex@barton.de Date: Sat Jun 2 00:32:19 2012 +0200
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
---
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 4d77871..09f726c 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);