Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain-net
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-chain-net
Commits
f70b5d6c
Commit
f70b5d6c
authored
5 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Replacement of macro to functions for app name and dirs
parent
1c70a8e8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap_chain_node_client.c
+0
-18
0 additions, 18 deletions
dap_chain_node_client.c
with
0 additions
and
18 deletions
dap_chain_node_client.c
+
0
−
18
View file @
f70b5d6c
...
@@ -59,9 +59,6 @@
...
@@ -59,9 +59,6 @@
#define LOG_TAG "dap_chain_node_client"
#define LOG_TAG "dap_chain_node_client"
#define DAP_APP_NAME NODE_NETNAME"-node"
#define SYSTEM_PREFIX "/opt/"DAP_APP_NAME
#define SYSTEM_CONFIGS_DIR SYSTEM_PREFIX"/etc"
//static int listen_port_tcp = 8079;
//static int listen_port_tcp = 8079;
...
@@ -79,21 +76,6 @@ static void s_ch_chain_callback_notify_packet_in(dap_stream_ch_chain_t* a_ch_cha
...
@@ -79,21 +76,6 @@ static void s_ch_chain_callback_notify_packet_in(dap_stream_ch_chain_t* a_ch_cha
*/
*/
int
dap_chain_node_client_init
(
void
)
int
dap_chain_node_client_init
(
void
)
{
{
dap_config_t
*
g_config
;
// read listen_port_tcp from settings
memcpy
(
s_sys_dir_path
+
l_sys_dir_path_len
,
SYSTEM_CONFIGS_DIR
,
sizeof
(
SYSTEM_CONFIGS_DIR
)
);
dap_config_init
(
s_sys_dir_path
);
memset
(
s_sys_dir_path
+
l_sys_dir_path_len
,
'\0'
,
MAX_PATH
-
l_sys_dir_path_len
);
if
((
g_config
=
dap_config_open
(
DAP_APP_NAME
))
==
NULL
)
{
return
-
1
;
}
/*else {
const char *port_str = dap_config_get_item_str(g_config, "server", "listen_port_tcp");
listen_port_tcp = (port_str) ? atoi(port_str) : 8079;
}*/
if
(
g_config
)
dap_config_close
(
g_config
);
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment