From 33ea97a23554d6e1dc19f801a4eb36f5e1d7846b Mon Sep 17 00:00:00 2001 From: Aleksandr Lysikov <lysikov@inbox.ru> Date: Sat, 16 Feb 2019 19:42:19 +0500 Subject: [PATCH] fix small warning --- client_mempool.c | 3 +++ client_mempool.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client_mempool.c b/client_mempool.c index 353c20a..2a0d93c 100644 --- a/client_mempool.c +++ b/client_mempool.c @@ -7,6 +7,7 @@ #include "dap_common.h" #include "dap_config.h" #include "dap_events.h" +#include "dap_chain_node.h" #include "dap_client_pvt.h" #include "dap_http_client_simple.h" #include "client_mempool.h" @@ -17,9 +18,11 @@ static int listen_port_tcp = 8079; +// send request to server static int client_mempool_send_request(client_mempool_t *mempool, dap_datum_mempool_t *datum_mempool, const char *action, bool is_last_req); + // callback for dap_client_new() in client_mempool_connect() static void stage_status_callback(dap_client_t *a_client, void *a_arg) { diff --git a/client_mempool.h b/client_mempool.h index 1e932e2..fd4cd1b 100644 --- a/client_mempool.h +++ b/client_mempool.h @@ -17,7 +17,7 @@ enum { }; // state for a client connection with mempool -typedef struct client_mempool_t { +typedef struct client_mempool { int state; dap_events_t *a_events; dap_client_t *a_client; -- GitLab