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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160423
@ -54,7 +54,7 @@ const struct ngcmd config_cmd = {
|
|||||||
"config <path> [arguments]",
|
"config <path> [arguments]",
|
||||||
"get or set configuration of node at <path>",
|
"get or set configuration of node at <path>",
|
||||||
NULL,
|
NULL,
|
||||||
{}
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -54,7 +54,7 @@ const struct ngcmd debug_cmd = {
|
|||||||
" debugging verbosity level. If the argument is ``+'' or ``-''"
|
" debugging verbosity level. If the argument is ``+'' or ``-''"
|
||||||
" the debug level is incremented or decremented; otherwise,"
|
" the debug level is incremented or decremented; otherwise,"
|
||||||
" it must be an absolute numerical level.",
|
" it must be an absolute numerical level.",
|
||||||
{}
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -54,7 +54,7 @@ const struct ngcmd mkpeer_cmd = {
|
|||||||
" connection are \"hook\" on the original node and \"peerhook\""
|
" connection are \"hook\" on the original node and \"peerhook\""
|
||||||
" on the new node."
|
" on the new node."
|
||||||
" If \"path\" is omitted then \".\" is assumed.",
|
" If \"path\" is omitted then \".\" is assumed.",
|
||||||
{}
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -51,7 +51,7 @@ const struct ngcmd name_cmd = {
|
|||||||
"name <path> <name>",
|
"name <path> <name>",
|
||||||
"Assign name <name> to the node at <path>",
|
"Assign name <name> to the node at <path>",
|
||||||
NULL,
|
NULL,
|
||||||
{}
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -53,7 +53,7 @@ const struct ngcmd status_cmd = {
|
|||||||
"status <path>",
|
"status <path>",
|
||||||
"Get human readable status information from the node at <path>",
|
"Get human readable status information from the node at <path>",
|
||||||
NULL,
|
NULL,
|
||||||
{}
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -52,7 +52,7 @@ const struct ngcmd types_cmd = {
|
|||||||
"types",
|
"types",
|
||||||
"Show information about all installed node types",
|
"Show information about all installed node types",
|
||||||
NULL,
|
NULL,
|
||||||
{}
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user