]> granicus.if.org Git - curl/commitdiff
axtls: Use Curl_wait_ms instead of the less-portable usleep
authorDan Fandrich <dan@coneharvesters.com>
Thu, 16 Jun 2016 06:44:08 +0000 (08:44 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 16 Jun 2016 06:44:08 +0000 (08:44 +0200)
lib/vtls/axtls.c

index 94bd145abdd74925e42ccd25bfe4384b11475cdd..85e45f597bfc90ff581f2aeb675e2e03fac58f41 100644 (file)
@@ -499,7 +499,7 @@ Curl_axtls_connect(struct connectdata *conn,
       return map_error_to_curl(ssl_fcn_return);
     }
     /* TODO: avoid polling */
-    usleep(10000);
+    Curl_wait_ms(10);
   }
   infof (conn->data, "handshake completed successfully\n");