summaryrefslogtreecommitdiff
path: root/src/timeoutconn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timeoutconn.c')
-rw-r--r--src/timeoutconn.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/timeoutconn.c b/src/timeoutconn.c
index 714faef..205db0a 100644
--- a/src/timeoutconn.c
+++ b/src/timeoutconn.c
@@ -30,9 +30,9 @@ int timeoutconn4(int s, char ip[4], uint16 port, unsigned int timeout)
for (;;) {
taia_now(&now);
iopause(&x, 1, &deadline, &now);
- if (x.revents) break; /* 's' available */
+ if (x.revents) break; // 's' available
if (taia_less(&deadline, &now)) {
- errno = ETIMEDOUT; /* note that connect attempt is continuing */
+ errno = ETIMEDOUT; // note that connect attempt is continuing
return -1;
}
p++;
@@ -61,9 +61,9 @@ int timeoutconn6(int s, char ip[16], uint16 port, unsigned int timeout, uint32 n
for (;;) {
taia_now(&now);
iopause(&x, 1, &deadline, &now);
- if (x.revents) break; /* 's' available */
+ if (x.revents) break; // 's' available
if (taia_less(&deadline, &now)) {
- errno = ETIMEDOUT; /* note that connect attempt is continuing */
+ errno = ETIMEDOUT; // note that connect attempt is continuing
return -1;
}
p++;
@@ -98,9 +98,9 @@ int timeoutconn(int s, char ip[16], uint16 port, unsigned int timeout, uint32 ne
for (;;) {
taia_now(&now);
iopause(&x, 1, &deadline, &now);
- if (x.revents) break; /* 's' available */
+ if (x.revents) break; // 's' available
if (taia_less(&deadline, &now)) {
- errno = ETIMEDOUT; /* note that connect attempt is continuing */
+ errno = ETIMEDOUT; // note that connect attempt is continuing
return -1;
}
p++;