mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 05:41:55 +00:00
Style police on api.c
This commit is contained in:
parent
2ec0fb9793
commit
8b050083a0
12
api.c
12
api.c
@ -636,8 +636,7 @@ static struct api_data *api_add_extra(struct api_data *root, struct api_data *ex
|
||||
{
|
||||
struct api_data *tmp;
|
||||
|
||||
if (root)
|
||||
{
|
||||
if (root) {
|
||||
if (extra) {
|
||||
// extra tail
|
||||
tmp = extra->prev;
|
||||
@ -654,8 +653,7 @@ static struct api_data *api_add_extra(struct api_data *root, struct api_data *ex
|
||||
// root prev = extra tail
|
||||
root->prev = tmp;
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
root = extra;
|
||||
|
||||
return root;
|
||||
@ -1464,7 +1462,7 @@ static void devstatus(__maybe_unused SOCKETTYPE c, __maybe_unused char *param, b
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_AN_FPGA
|
||||
if (numpga > 0)
|
||||
if (numpga > 0) {
|
||||
for (i = 0; i < numpga; i++) {
|
||||
if (isjson && devcount > 0)
|
||||
strcat(io_buffer, COMMA);
|
||||
@ -1473,10 +1471,11 @@ static void devstatus(__maybe_unused SOCKETTYPE c, __maybe_unused char *param, b
|
||||
|
||||
devcount++;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WANT_CPUMINE
|
||||
if (opt_n_threads > 0)
|
||||
if (opt_n_threads > 0) {
|
||||
for (i = 0; i < num_processors; i++) {
|
||||
if (isjson && devcount > 0)
|
||||
strcat(io_buffer, COMMA);
|
||||
@ -1485,6 +1484,7 @@ static void devstatus(__maybe_unused SOCKETTYPE c, __maybe_unused char *param, b
|
||||
|
||||
devcount++;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (isjson)
|
||||
|
Loading…
x
Reference in New Issue
Block a user