commit e7e47e77a3886c258368a14a8c0bb393280aac64 from: Alexander Barton date: Fri Jun 01 22:32:19 2012 UTC 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 commit - 695df6532ec717e5571e1ddc2c88a8c968603c5a commit + e7e47e77a3886c258368a14a8c0bb393280aac64 blob - 4d778719a2c8623c60570e9c839877595b38e0a2 blob + 09f726ca2bf91016d54a8d2b2c7c10029943fa68 --- src/ngircd/conn.c +++ 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);