mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
api correct applog typing
This commit is contained in:
parent
6cef9f423d
commit
65af59b754
8
api.c
8
api.c
@ -3928,18 +3928,18 @@ void api(int api_thr_id)
|
||||
}
|
||||
|
||||
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 {
|
||||
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
|
||||
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) {
|
||||
clisiz = sizeof(cli);
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user