aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-01-19 23:03:59 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-01-19 23:04:53 +0100
commit81cb255cb355ca35453e7297af9cbc8ff7798416 (patch)
treea78fe5ad3638353014758a75f97ccc17aa7972b2
parent1a9a99adf9ddf7a4727f7ba1d2b6a64306561f4a (diff)
sws: use SOCKERRNO, not errno
Reported-by: Gisle Vanem
-rw-r--r--tests/server/sws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 63e9fdf5c..5646f965b 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -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;
}