Skip to content

Commit

Permalink
windows tcp: fix compilation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Dec 29, 2024
1 parent d892aa5 commit 945dbef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform/windows/win_tcpdial.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ nni_tcp_dial(nni_tcp_dialer *d, const nni_sockaddr *sa, nni_aio *aio)
nni_aio_list_append(&d->aios, aio);

// dialing is concurrent.
if (!nni_win_connectex(s, &c->peername, len, &c->conn_io.olpd)) {
if (!nni_win_connectex(
s, (SOCKADDR *) &c->peername, len, &c->conn_io.olpd)) {
if ((rv = GetLastError()) != ERROR_IO_PENDING) {
nni_aio_list_remove(aio);
nni_mtx_unlock(&d->mtx);
Expand Down

0 comments on commit 945dbef

Please sign in to comment.