Skip to content
Snippets Groups Projects
Commit 131c5f92 authored by Constantin Papizh's avatar Constantin Papizh
Browse files

Some compile errors fixed

parent c39d36c8
No related branches found
No related tags found
1 merge request!35Some compile errors fixed
......@@ -584,7 +584,7 @@ static bool dap_get_contents_win32(const char *filename, char **contents, size_t
{
return false;
}
retval = get_contents_stdio (filename, f, contents, length, error);
retval = get_contents_stdio (filename, f, contents, length);
return retval;
}
......
......@@ -788,10 +788,9 @@ static void *s_net_proc_thread ( void *a_net )
// check or start sync
s_net_states_proc( l_net );
struct timespec l_to;
#ifndef _WIN32
int l_ret = 0;
struct timespec l_to;
// prepare for signal waiting
clock_gettime( CLOCK_MONOTONIC, &l_to );
int64_t l_nsec_new = l_to.tv_nsec + l_timeout_ms * 1000000ll;
......
......@@ -1011,10 +1011,12 @@ int dap_chain_node_cli_init(dap_config_t * g_config)
dap_chain_node_cli_cmd_item_create ("exit", com_exit, NULL, "Stop application and exit",
"exit\n" );
#ifndef _WIN32
// News
dap_chain_node_cli_cmd_item_create("news", com_news, NULL, "Add News for VPN clients. Language code is a text code like \"en\", \"ru\", \"fr\"",
"news [-text <news text> | -file <filename with news>] -lang <language code> \n");
#endif
// create thread for waiting of clients
pthread_t l_thread_id;
......
......@@ -133,8 +133,10 @@ int com_stats(int argc, char ** argv, void *arg_func, char **str_reply);
int com_exit(int argc, char ** argv, void *arg_func, char **str_reply);
#ifndef _WIN32
// Add News for VPN clients
int com_news(int a_argc, char ** a_argv, void *a_arg_func, char **a_str_reply);
#endif
// vpn_client command
int com_vpn_client(int a_argc, char ** a_argv, void *arg_func, char **a_str_reply);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment