Re: small socket warning
Re: small socket warning
- Subject: Re: small socket warning
- From: Andrei Tchijov <email@hidden>
- Date: Fri, 25 Nov 2005 12:41:20 -0500
accept defined as
int accept(int s, struct sockaddr *addr, socklen_t *addrlen);
if you will search through headers, you will see that : socklen_t ==
__darwin_socklen_t == __uint32_t == unsigned int
to get rid of warning either define addrSize as of type socklen_t or
add cast to (socklen_t*)
On Nov 25, 2005, at 12:27 PM, Andrea Salomoni wrote:
Hi to all,
I'm using small socket API, but when I compile the project (the
example too), the compiler returns me a warning:
AbstractSocket.m:116: warning: pointer targets in passing argument
3 of 'accept' differ in signedness
the interested line is:
socketfd2 = accept(socketfd, (struct sockaddr*)&acceptAddr,
&addrSize);
what does it means?
thank you all
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden