Fix ifdefs in Ctrl

This commit is contained in:
Florian Märkl 2019-10-05 12:45:00 +02:00
commit f921ebe799
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857

View file

@ -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