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

Re: [PATCH] Fix gcc-4 warning in accept() call

From
PRPavel Roskin <proski@gnu.org>
Date
Sep 30, 2005, 04:09 UTC
Message-ID
<20050930000917.rrwggw4g0gogs8w4@webmail.spamcop.net>
In-Reply-To
<200509292311.j8TNBZDm022135@inti.inf.utfsm.cl>
Quoting Horst von Brand <vonbrand@inf.utfsm.cl>:
> > +				unsigned int sslen = sizeof(ss);
>
> Shouldn't this be size_t?
No.  That would actually break things on big-endian 64-bit platforms.

You can see "info libc" for the whole story. My (limited!) understanding is that it should be 32-bit for compatibility reasons, so socklen_t was a trick to fool size_t proponents from the POSIX committee :-)

-- Regards, Pavel Roskin

Previous: Horst von BrandNext: H. Peter Anvin
Message 2 of 3 in “Re: [PATCH] Fix gcc-4 warning in accept() call”
  1. Horst von BrandSep 29, 2005
  2. Pavel RoskinSep 30, 2005
  3. H. Peter AnvinSep 30, 2005

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.