Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
17
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
cellframe
celllframe-node
Commits
c4292b0c
Unverified
Commit
c4292b0c
authored
5 years ago
by
Aleksandr Lysikov
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #17 from kelvinblockchain/master
master->feature-2272
parents
ac5a11c8
6f78b455
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libdap-chain-net-srv-vpn
+1
-1
1 addition, 1 deletion
libdap-chain-net-srv-vpn
libdap-stream
+1
-1
1 addition, 1 deletion
libdap-stream
sources/main_node_cli.c
+3
-10
3 additions, 10 deletions
sources/main_node_cli.c
with
5 additions
and
12 deletions
libdap-chain-net-srv-vpn
@
10476728
Compare
657f42e1
...
10476728
Subproject commit
657f42e138dba298deb06134586ca09aaba3b38d
Subproject commit
10476728dbc21816ea314b4b089e1903132b80b3
This diff is collapsed.
Click to expand it.
libdap-stream
@
f6c1c2cd
Compare
9729b334
...
f6c1c2cd
Subproject commit
9729b3341b4a1d5cc90007be760d3c8931f2bf3d
Subproject commit
f6c1c2cd593ca61b6cc5140855d5dbd9bc61aed3
This diff is collapsed.
Click to expand it.
sources/main_node_cli.c
+
3
−
10
View file @
c4292b0c
...
...
@@ -79,7 +79,7 @@ static char** split_word(char *line, int *argc)
int
execute_line
(
char
*
line
)
{
register
int
i
;
const
COMMAND
*
command
;
dap_chain_node_cmd_item_t
*
command
;
char
*
word
;
/* Isolate the command word. */
...
...
@@ -198,19 +198,12 @@ int main(int argc, const char * argv[])
free_cmd_state(cmd);
}*/
const
COMMAND
*
command
=
NULL
;
// in the first argument of command line look for the command
if
(
argc
>
1
)
command
=
find_command
(
argv
[
1
]);
// command found
if
(
command
)
{
if
(
argc
>
1
){
// Call the function
//int res = ((*(command->func))(argc - 2, argv + 2));
cmd_state
cmd
;
memset
(
&
cmd
,
0
,
sizeof
(
cmd_state
));
cmd
.
cmd_name
=
(
char
*
)
argv
[
1
];
cmd
.
cmd_name
=
strdup
(
argv
[
1
]
)
;
cmd
.
cmd_param_count
=
argc
-
2
;
if
(
cmd
.
cmd_param_count
>
0
)
cmd
.
cmd_param
=
(
char
**
)
(
argv
+
2
);
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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