]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/ioset.c
Added back missing comment to example config
[irc/evilnet/x3.git] / src / ioset.c
index d16a8ebaa6c535b69fde7e3afee2838c21e2b134..30f12f4d38cd5a8c3f705ea41118b01d199823bd 100644 (file)
@@ -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;