From: Pavel Roskin <proski@xxxxxxx> INADDR_NONE is not equal to -1 on 64-bit systems. Signed-off-by: Pavel Roskin <proski@xxxxxxx> --- cbtcommon/tcpsocket.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cbtcommon/tcpsocket.c b/cbtcommon/tcpsocket.c index a174007..f31060e 100644 --- a/cbtcommon/tcpsocket.c +++ b/cbtcommon/tcpsocket.c @@ -198,7 +198,7 @@ #ifdef __linux__ memcpy(dest, &ip.s_addr, sizeof(ip.s_addr)); } #else - if ( (*dest = inet_addr(addr_str)) != -1) + if ( (*dest = inet_addr(addr_str)) != INADDR_NONE) { /* nothing */ } - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html