aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2006-07-17 08:35:47 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2006-07-17 08:35:47 +0000
commitc3759b3a3f3937321c2d00b5f26ec4ab076f2883 (patch)
tree197f0e3ddbd6749680e5f78e9e242872cb4e87ae
parentcabdf61c754c4c0e6edeb76904179b483e463105 (diff)
downloadsrc-c3759b3a3f3937321c2d00b5f26ec4ab076f2883.tar.gz
src-c3759b3a3f3937321c2d00b5f26ec4ab076f2883.zip
Don't use empty braces ("{}") to initialise arrays. This is a syntax
error in ISO C (both 90 and 99).
Notes
Notes: svn path=/head/; revision=160423
-rw-r--r--usr.sbin/ngctl/config.c2
-rw-r--r--usr.sbin/ngctl/debug.c2
-rw-r--r--usr.sbin/ngctl/mkpeer.c2
-rw-r--r--usr.sbin/ngctl/name.c2
-rw-r--r--usr.sbin/ngctl/status.c2
-rw-r--r--usr.sbin/ngctl/types.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ngctl/config.c b/usr.sbin/ngctl/config.c
index 739a6934b83f..9b1a2751d136 100644
--- a/usr.sbin/ngctl/config.c
+++ b/usr.sbin/ngctl/config.c
@@ -54,7 +54,7 @@ const struct ngcmd config_cmd = {
"config <path> [arguments]",
"get or set configuration of node at <path>",
NULL,
- {}
+ { NULL }
};
static int
diff --git a/usr.sbin/ngctl/debug.c b/usr.sbin/ngctl/debug.c
index 491bfb41378d..d64e32d7f4cf 100644
--- a/usr.sbin/ngctl/debug.c
+++ b/usr.sbin/ngctl/debug.c
@@ -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
diff --git a/usr.sbin/ngctl/mkpeer.c b/usr.sbin/ngctl/mkpeer.c
index 77c43a31eb55..1c6896b1d18c 100644
--- a/usr.sbin/ngctl/mkpeer.c
+++ b/usr.sbin/ngctl/mkpeer.c
@@ -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
diff --git a/usr.sbin/ngctl/name.c b/usr.sbin/ngctl/name.c
index a557134ce8dc..7149d35dbc88 100644
--- a/usr.sbin/ngctl/name.c
+++ b/usr.sbin/ngctl/name.c
@@ -51,7 +51,7 @@ const struct ngcmd name_cmd = {
"name <path> <name>",
"Assign name <name> to the node at <path>",
NULL,
- {}
+ { NULL }
};
static int
diff --git a/usr.sbin/ngctl/status.c b/usr.sbin/ngctl/status.c
index 9fc5ff1ea2c0..7827c631513d 100644
--- a/usr.sbin/ngctl/status.c
+++ b/usr.sbin/ngctl/status.c
@@ -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
diff --git a/usr.sbin/ngctl/types.c b/usr.sbin/ngctl/types.c
index 0d5ef1811134..5ed4b53d00ea 100644
--- a/usr.sbin/ngctl/types.c
+++ b/usr.sbin/ngctl/types.c
@@ -52,7 +52,7 @@ const struct ngcmd types_cmd = {
"types",
"Show information about all installed node types",
NULL,
- {}
+ { NULL }
};
static int