diff --git a/src/core/ev.c b/src/core/ev.c index 5585cd9b..78f6637e 100644 --- a/src/core/ev.c +++ b/src/core/ev.c @@ -753,18 +753,18 @@ void janet_loop1_impl(int has_timeout, JanetTimeout timeout) { if (now > to.when) { waittime = 0; } else { - waittime = (uint64_t) (to.when - now); + waittime = (uint64_t)(to.when - now); } } else { waittime = INFINITE; } - BOOL result = GetQueuedCompletionStatus(janet_vm_iocp, &num_bytes_transfered, &completionKey, &overlapped, (DWORD) waittime); + BOOL result = GetQueuedCompletionStatus(janet_vm_iocp, &num_bytes_transfered, &completionKey, &overlapped, (DWORD) waittime); - if (!result) { + if (!result) { if (!has_timeout) { JANET_EXIT("failed to get iocp GetQueuedCompletionStatus"); } - } else { + } else { /* Normal event */ JanetListenerState *state = (JanetListenerState *) completionKey; state->event = overlapped; @@ -986,7 +986,7 @@ void janet_loop1_impl(int has_timeout, JanetTimestamp timeout) { do { if (has_timeout) { JanetTimestamp now = ts_now(); - ready = poll(janet_vm_fds, janet_vm_fdcount, now > timeout ? 0 : (int) (timeout - now)); + ready = poll(janet_vm_fds, janet_vm_fdcount, now > timeout ? 0 : (int)(timeout - now)); } else { ready = poll(janet_vm_fds, janet_vm_fdcount, -1); } @@ -1139,7 +1139,7 @@ static const JanetReg ev_cfuns[] = { { "ev/rselect", cfun_channel_rchoice, JDOC("(ev/rselect & clauses)\n\n" - "Similar to ev/choice, but will try clauses in a random order for fairness.") + "Similar to ev/choice, but will try clauses in a random order for fairness.") }, {NULL, NULL, NULL} }; diff --git a/src/core/net.c b/src/core/net.c index cb37f889..b34159d3 100644 --- a/src/core/net.c +++ b/src/core/net.c @@ -259,7 +259,7 @@ JANET_NO_RETURN static void janet_sched_read(JanetStream *stream, JanetBuffer *b WSARecv((SOCKET) stream->handle, #endif - janet_await(); + janet_await(); } JANET_NO_RETURN static void janet_sched_chunk(JanetStream *stream, JanetBuffer *buf, int32_t nbytes) {