diff options
Diffstat (limited to 'src/htslib.c')
-rw-r--r-- | src/htslib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htslib.c b/src/htslib.c index 04243ff..7e0404e 100644 --- a/src/htslib.c +++ b/src/htslib.c @@ -2274,7 +2274,7 @@ T_SOC newhttp(httrackp * opt, const char *_iadr, htsblk * retour, int port, if (!waitconnect) { #ifdef _WIN32 unsigned long p = 1; // non bloquant - if (ioctlsocket(soc, FIONBIO, &val)) { + if (ioctlsocket(soc, FIONBIO, &p)) { const int last_errno = WSAGetLastError(); snprintf(retour->msg, sizeof(retour->msg), "Non-blocking socket failed: %s", strerror(last_errno)); |