summaryrefslogtreecommitdiff
path: root/src/timeoutconn.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-09 15:50:21 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-09 15:50:21 +0200
commit795ffc5e62e8ba383575dbcd9943a580d4bd3358 (patch)
treec128889056202b255e2f22afeb7717894d350862 /src/timeoutconn.c
parent5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b (diff)
formatting changes
Manual format adjustments. Comment adjustments. Remove usage of the register keyword.
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++;