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:
Stefan Farfeleder 2006-07-17 08:35:47 +00:00
parent cabdf61c75
commit c3759b3a3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160423
6 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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