Browse Source

Style police on api.c

nfactor-troky
Con Kolivas 13 years ago
parent
commit
8b050083a0
  1. 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; struct api_data *tmp;
if (root) if (root) {
{
if (extra) { if (extra) {
// extra tail // extra tail
tmp = extra->prev; 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 = extra tail
root->prev = tmp; root->prev = tmp;
} }
} } else
else
root = extra; root = extra;
return root; return root;
@ -1464,7 +1462,7 @@ static void devstatus(__maybe_unused SOCKETTYPE c, __maybe_unused char *param, b
} }
#endif #endif
#ifdef HAVE_AN_FPGA #ifdef HAVE_AN_FPGA
if (numpga > 0) if (numpga > 0) {
for (i = 0; i < numpga; i++) { for (i = 0; i < numpga; i++) {
if (isjson && devcount > 0) if (isjson && devcount > 0)
strcat(io_buffer, COMMA); strcat(io_buffer, COMMA);
@ -1473,10 +1471,11 @@ static void devstatus(__maybe_unused SOCKETTYPE c, __maybe_unused char *param, b
devcount++; devcount++;
} }
}
#endif #endif
#ifdef WANT_CPUMINE #ifdef WANT_CPUMINE
if (opt_n_threads > 0) if (opt_n_threads > 0) {
for (i = 0; i < num_processors; i++) { for (i = 0; i < num_processors; i++) {
if (isjson && devcount > 0) if (isjson && devcount > 0)
strcat(io_buffer, COMMA); strcat(io_buffer, COMMA);
@ -1485,6 +1484,7 @@ static void devstatus(__maybe_unused SOCKETTYPE c, __maybe_unused char *param, b
devcount++; devcount++;
} }
}
#endif #endif
if (isjson) if (isjson)

Loading…
Cancel
Save