1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

api correct applog typing

This commit is contained in:
Kano 2013-05-02 23:34:14 +10:00
parent 6cef9f423d
commit 65af59b754

8
api.c
View File

@ -3928,18 +3928,18 @@ void api(int api_thr_id)
} }
if (opt_api_allow) if (opt_api_allow)
applog(LOG_WARNING, "API running in IP access mode on port %d (%d)", port, *apisock); applog(LOG_WARNING, "API running in IP access mode on port %d (%d)", port, (int)*apisock);
else { else {
if (opt_api_network) if (opt_api_network)
applog(LOG_WARNING, "API running in UNRESTRICTED read access mode on port %d (%d)", port, *apisock); applog(LOG_WARNING, "API running in UNRESTRICTED read access mode on port %d (%d)", port, (int)*apisock);
else else
applog(LOG_WARNING, "API running in local read access mode on port %d (%d)", port, *apisock); applog(LOG_WARNING, "API running in local read access mode on port %d (%d)", port, (int)*apisock);
} }
while (!bye) { while (!bye) {
clisiz = sizeof(cli); clisiz = sizeof(cli);
if (SOCKETFAIL(c = accept(*apisock, (struct sockaddr *)(&cli), &clisiz))) { if (SOCKETFAIL(c = accept(*apisock, (struct sockaddr *)(&cli), &clisiz))) {
applog(LOG_ERR, "API failed (%s)%s (%d)", SOCKERRMSG, UNAVAILABLE, *apisock); applog(LOG_ERR, "API failed (%s)%s (%d)", SOCKERRMSG, UNAVAILABLE, (int)*apisock);
goto die; goto die;
} }