/* ioset.h - srvx event loop
* Copyright 2002-2004 srvx Development Team
*
- * This file is part of srvx.
+ * This file is part of x3.
*
* srvx is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
fd->readable_cb(fd);
}
if (FD_ISSET(nn, &write_fds) && !fd->connected) {
- int rc, arglen = sizeof(rc);
+ socklen_t arglen;
+ int rc;
+
+ arglen = sizeof(rc);
if (getsockopt(fd->fd, SOL_SOCKET, SO_ERROR, &rc, &arglen) < 0)
rc = errno;
fd->connected = 1;