Don't use empty braces ("{}") to initialise arrays. This is a syntax
error in ISO C (both 90 and 99).
This commit is contained in:
parent
cabdf61c75
commit
c3759b3a3f
@ -54,7 +54,7 @@ const struct ngcmd config_cmd = {
|
||||
"config <path> [arguments]",
|
||||
"get or set configuration of node at <path>",
|
||||
NULL,
|
||||
{}
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -54,7 +54,7 @@ const struct ngcmd debug_cmd = {
|
||||
" debugging verbosity level. If the argument is ``+'' or ``-''"
|
||||
" the debug level is incremented or decremented; otherwise,"
|
||||
" it must be an absolute numerical level.",
|
||||
{}
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -54,7 +54,7 @@ const struct ngcmd mkpeer_cmd = {
|
||||
" connection are \"hook\" on the original node and \"peerhook\""
|
||||
" on the new node."
|
||||
" If \"path\" is omitted then \".\" is assumed.",
|
||||
{}
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -51,7 +51,7 @@ const struct ngcmd name_cmd = {
|
||||
"name <path> <name>",
|
||||
"Assign name <name> to the node at <path>",
|
||||
NULL,
|
||||
{}
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -53,7 +53,7 @@ const struct ngcmd status_cmd = {
|
||||
"status <path>",
|
||||
"Get human readable status information from the node at <path>",
|
||||
NULL,
|
||||
{}
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -52,7 +52,7 @@ const struct ngcmd types_cmd = {
|
||||
"types",
|
||||
"Show information about all installed node types",
|
||||
NULL,
|
||||
{}
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user