*/
int is_a_socket(int fd)
{
- int v, l;
+ int v;
+ socklen_t l;
l = sizeof(int);
/* Parameters to getsockopt, setsockopt etc are very
* unstandardized across platforms, so don't be surprised if
- * there are compiler warnings on e.g. SCO OpenSwerver. It
- * seems they all eventually get the right idea.
+ * there are compiler warnings on e.g. SCO OpenSwerver or AIX.
+ * It seems they all eventually get the right idea.
*
* Debian says: ``The fifth argument of getsockopt and
* setsockopt is in reality an int [*] (and this is what BSD