socklen_t compatibility cruft.
This commit is contained in:
@@ -6,11 +6,7 @@
|
||||
|
||||
int socket_connected(int s) {
|
||||
struct sockaddr si;
|
||||
#ifdef HAVE_SOCKLEN_T
|
||||
socklen_t sl=sizeof si;
|
||||
#else
|
||||
int sl=sizeof si;
|
||||
#endif
|
||||
if (getpeername(s,&si,&sl))
|
||||
return 0;
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user