X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d76ed9a966ee3d955c8ef00ecc02e643c2005e2e..db4e7826812cf256f6382cafcf93c3986040d842:/src/ioset.c diff --git a/src/ioset.c b/src/ioset.c index d16a8eb..30f12f4 100644 --- a/src/ioset.c +++ b/src/ioset.c @@ -1,7 +1,7 @@ /* 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 @@ -406,7 +406,10 @@ ioset_run(void) { 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;