mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-20 21:43:12 -07:00
Fix ifdefs in Ctrl
This commit is contained in:
parent
8779d7612a
commit
f921ebe799
1 changed files with 2 additions and 4 deletions
|
@ -607,13 +607,11 @@ static ChiakiErrorCode ctrl_connect(ChiakiCtrl *ctrl)
|
||||||
CHIAKI_LOGE(session->log, "Failed to receive ctrl request response: %s", chiaki_error_string(err));
|
CHIAKI_LOGE(session->log, "Failed to receive ctrl request response: %s", chiaki_error_string(err));
|
||||||
if(err == CHIAKI_ERR_NETWORK)
|
if(err == CHIAKI_ERR_NETWORK)
|
||||||
{
|
{
|
||||||
CHIAKI_LOGE(session->log, "Ctrl request response network error: " CHIAKI_SOCKET_ERROR_FMT,
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
errsv
|
CHIAKI_LOGE(session->log, "Ctrl request response network error: %d", errsv);
|
||||||
#else
|
#else
|
||||||
strerror(errsv)
|
CHIAKI_LOGE(session->log, "Ctrl request response network error: %s", strerror(errsv));
|
||||||
#endif
|
#endif
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue