summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2022-06-26 14:14:58 -0700
committermichael-grunder <michael.grunder@gmail.com>2022-06-26 14:14:58 -0700
commitf246ee433d7d46b8132781759c660f9cb70b417d (patch)
tree30d973792f121f398c389833e8f1cc60a7ce50e3 /net.c
parent94c1985bde0751fabc31deba437ffa6f6d52b696 (diff)
Whitespace, style
Diffstat (limited to 'net.c')
-rw-r--r--net.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net.c b/net.c
index d252555..3ff89ed 100644
--- a/net.c
+++ b/net.c
@@ -278,20 +278,19 @@ int redisCheckConnectDone(redisContext *c, int *completed) {
return REDIS_OK;
}
int error = errno;
- if (error == EINPROGRESS)
- {
+ if (error == EINPROGRESS) {
/* must check error to see if connect failed. Get the socket error */
int fail, so_error;
socklen_t optlen = sizeof(so_error);
fail = getsockopt(c->fd, SOL_SOCKET, SO_ERROR, &so_error, &optlen);
if (fail == 0) {
if (so_error == 0) {
- /* ocket is connected! */
+ /* Socket is connected! */
*completed = 1;
return REDIS_OK;
}
/* connection error; */
- errno = so_error;
+ errno = so_error;
error = so_error;
}
}