git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: cvsimport weird

From
YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Date
May 18, 2006, 05:56 UTC
Message-ID
<20060518.145659.76628953.yoshfuji@linux-ipv6.org>
In-Reply-To
<1147931094.32050.51.camel@dv>
In article <1147931094.32050.51.camel@dv> (at Thu, 18 May 2006 01:44:54 -0400), Pavel Roskin <proski@gnu.org> says:
Show 14 quoted lines
> Address resolution is broken in cvsps on 64-bit machines.  This patch to
> cvsps is needed:
> 
> --- cbtcommon/tcpsocket.c
> +++ 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)) != INADDR_NONE)
>    {
>      /* nothing */
>    }
You need to define INADDR_NONE on some platforms; e.g. Solaris.
--yoshfuji
Previous: Pavel RoskinNext: Bertrand Jacquin
Message 5 of 6 in “cvsimport weird”
  1. Bertrand JacquinMay 18, 2006
  2. Martin LanghoffMay 18, 2006
  3. Pavel RoskinMay 18, 2006
  4. Pavel RoskinMay 18, 2006
  5. YOSHIFUJI Hideaki / 吉藤英明May 18, 2006
  6. Bertrand JacquinMay 18, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.