net: Replace NET_WAIT_FOREVER by SYS_FOREVER_MS

As we now have SYS_FOREVER_MS, use that instead of network
specific NET_WAIT_FOREVER.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2020-05-05 14:20:38 +03:00
commit 65a1bebe85
12 changed files with 22 additions and 37 deletions

View file

@ -491,12 +491,7 @@ int http_client_req(int sock, struct http_request *req,
req->internal.response.recv_buf_len = req->recv_buf_len;
req->internal.user_data = user_data;
req->internal.sock = sock;
if (timeout == NET_WAIT_FOREVER) {
req->internal.timeout = K_FOREVER;
} else {
req->internal.timeout = K_MSEC(timeout);
}
req->internal.timeout = SYS_TIMEOUT_MS(timeout);
method = http_method_str(req->method);