1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-08 08:23:34 -05:00

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;
buf.base = strdup(m_buf);
buf.len = (ULONG) strlen(buf.base);
buf.len = strlen(buf.base);
uv_write_t *req = new uv_write_t;
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);
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;
}