summaryrefslogtreecommitdiff
path: root/devel/cvsps/patches/patch-ae
blob: 01a492f61c067ce722723853f7630bd9e6bfbaa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ae,v 1.1 2009/08/30 17:16:54 schmonz Exp $

--- cbtcommon/tcpsocket.c.orig	2005-05-25 23:39:40.000000000 -0400
+++ cbtcommon/tcpsocket.c
@@ -198,7 +198,7 @@ convert_address(long *dest, const char *
     memcpy(dest, &ip.s_addr, sizeof(ip.s_addr));
   }
 #else
-  if ( (*dest = inet_addr(addr_str)) != -1)
+  if ( (*dest = inet_addr(addr_str)) != (in_addr_t)-1)
   {
     /* nothing */
   }