Recommit gcc-4 tweaks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21431 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-07-08 11:48:37 +00:00
parent 18c6fddb3b
commit 7c4a87c2c0
53 changed files with 466 additions and 322 deletions

View file

@ -1076,7 +1076,7 @@ static Class runLoopClass;
if (state == GS_H_TRYCON) /* Connection attempt. */
{
int res = 0;
int len = sizeof(res);
unsigned len = sizeof(res);
if (getsockopt(desc, SOL_SOCKET, SO_ERROR, (char*)&res, &len) == 0
&& res != 0)
@ -2117,7 +2117,7 @@ static unsigned wordAlign;
#endif
{
struct sockaddr_in sockAddr;
int size = sizeof(sockAddr);
unsigned size = sizeof(sockAddr);
desc = accept(listener, (struct sockaddr*)&sockAddr, &size);
if (desc == INVALID_SOCKET)