This commit is contained in:
Jethro Grassie 2019-05-11 18:00:50 -04:00
parent 98d6fc474f
commit 747b471cd6
No known key found for this signature in database
GPG key ID: DE8ED755616565BB
3 changed files with 11 additions and 11 deletions

View file

@ -323,7 +323,7 @@ compare_payment(const MDB_val *a, const MDB_val *b)
} }
static int static int
database_init() database_init(void)
{ {
int rc; int rc;
char *err; char *err;
@ -388,7 +388,7 @@ database_init()
} }
static void static void
database_close() database_close(void)
{ {
log_info("Closing database"); log_info("Closing database");
mdb_dbi_close(env, db_shares); mdb_dbi_close(env, db_shares);
@ -748,7 +748,7 @@ process_blocks(block_t *blocks, size_t count)
} }
static void static void
update_pool_hr() update_pool_hr(void)
{ {
uint64_t hr = 0; uint64_t hr = 0;
client_t *c = pool_clients.clients; client_t *c = pool_clients.clients;
@ -1053,7 +1053,7 @@ client_send_job(client_t *client, bool response)
} }
static void static void
pool_clients_send_job() pool_clients_send_job(void)
{ {
client_t *c = pool_clients.clients; client_t *c = pool_clients.clients;
for (size_t i = 0; i < pool_clients.count; i++, c++) for (size_t i = 0; i < pool_clients.count; i++, c++)
@ -1065,7 +1065,7 @@ pool_clients_send_job()
} }
static void static void
pool_clients_init() pool_clients_init(void)
{ {
assert(pool_clients.count == 0); assert(pool_clients.count == 0);
pool_clients.count = POOL_CLIENTS_GROW; pool_clients.count = POOL_CLIENTS_GROW;
@ -1074,7 +1074,7 @@ pool_clients_init()
} }
static void static void
pool_clients_free() pool_clients_free(void)
{ {
assert(pool_clients.count != 0); assert(pool_clients.count != 0);
client_t *c = pool_clients.clients; client_t *c = pool_clients.clients;
@ -1639,7 +1639,7 @@ cleanup:
} }
static int static int
send_payments() send_payments(void)
{ {
uint64_t threshold = 1000000000000 * config.payment_threshold; uint64_t threshold = 1000000000000 * config.payment_threshold;
int rc; int rc;
@ -1737,7 +1737,7 @@ send_payments()
} }
static void static void
fetch_last_block_header() fetch_last_block_header(void)
{ {
log_info("Fetching last block header"); log_info("Fetching last block header");
char body[RPC_BODY_MAX]; char body[RPC_BODY_MAX];
@ -2448,7 +2448,7 @@ run(void)
} }
static void static void
cleanup() cleanup(void)
{ {
log_info("\nPerforming cleanup"); log_info("\nPerforming cleanup");
if (listener_event) if (listener_event)

View file

@ -137,7 +137,7 @@ start_web_ui(wui_context_t *context)
} }
void void
stop_web_ui() stop_web_ui(void)
{ {
log_debug("Stopping Web UI"); log_debug("Stopping Web UI");
if (mhd_daemon != NULL) if (mhd_daemon != NULL)

View file

@ -56,6 +56,6 @@ typedef struct wui_context_t
} wui_context_t; } wui_context_t;
int start_web_ui(wui_context_t *context); int start_web_ui(wui_context_t *context);
void stop_web_ui(); void stop_web_ui(void);
#endif #endif