From: Pavel Roskin Date: Fri, 30 Sep 2005 04:09:17 GMT Subject: Re: [PATCH] Fix gcc-4 warning in accept() call Message-ID: <20050930000917.rrwggw4g0gogs8w4@webmail.spamcop.net> In-Reply-To: <200509292311.j8TNBZDm022135@inti.inf.utfsm.cl> Quoting Horst von Brand : > > + 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