Fix Linux build.

This commit is contained in:
XMRig 2017-08-15 03:13:11 +03:00
parent 61859dfe14
commit c40f212e23
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ void ConsoleLog::print(char *fmt, va_list args)
uv_buf_t buf; uv_buf_t buf;
buf.base = strdup(m_buf); buf.base = strdup(m_buf);
buf.len = (ULONG) strlen(buf.base); buf.len = strlen(buf.base);
uv_write_t *req = new uv_write_t; uv_write_t *req = new uv_write_t;
req->data = buf.base; req->data = buf.base;

View file

@ -501,7 +501,7 @@ void Client::onAllocBuffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t
auto client = getClient(handle->data); auto client = getClient(handle->data);
buf->base = &client->m_recvBuf.base[client->m_recvBufPos]; buf->base = &client->m_recvBuf.base[client->m_recvBufPos];
buf->len = client->m_recvBuf.len - (ULONG) client->m_recvBufPos; buf->len = client->m_recvBuf.len - client->m_recvBufPos;
} }