Commit Diff
Diff:
695df6532ec717e5571e1ddc2c88a8c968603c5a
e7e47e77a3886c258368a14a8c0bb393280aac64
e7e47e77a3886c258368a14a8c0bb393280aac64
Commit:
e7e47e77a3886c258368a14a8c0bb393280aac64
Tree:
31605e02fe06a94e09cb53949d6bcaad9aad9367
Committer:
Alexander Barton <alex@barton.de>
Date:
Fri Jun 1 22:32:19 2012
UTC
Message:
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
+++ 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);