]> granicus.if.org Git - curl/commitdiff
sws: use SOCKERRNO, not errno
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Jan 2017 22:03:59 +0000 (23:03 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 19 Jan 2017 22:04:53 +0000 (23:04 +0100)
Reported-by: Gisle Vanem
tests/server/sws.c

index 63e9fdf5cf180ff5ce602fb65f285ac43b8bf974..5646f965bf521d981302b4a7c1bf6b52444f2cc3 100644 (file)
@@ -1204,7 +1204,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
     retry:
     written = swrite(sock, buffer, num);
     if(written < 0) {
-      if((EWOULDBLOCK == errno) || (EAGAIN == errno)) {
+      if((EWOULDBLOCK == SOCKERRNO) || (EAGAIN == SOCKERRNO)) {
         wait_ms(10);
         goto retry;
       }