summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-22 15:35:26 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-22 15:35:26 +0200
commitdc41c0ebfae020368ccf832f0fe0528ceb137f2c (patch)
tree7e54905bc6b074936667151cba7a0982b069bb1e /src/tools
parente7e5729f46812929e2acbde19d99eea7e7929670 (diff)
downloadouroboros-dc41c0ebfae020368ccf832f0fe0528ceb137f2c.tar.gz
ouroboros-dc41c0ebfae020368ccf832f0fe0528ceb137f2c.zip
irmd, tools: Fix missing initializers
The BSD compiler requires explicit initializers for all fields with the -Wmissing-field-initializers flag enabled On branch be-fix-build # Changes to be committed: # modified: src/irmd/main.c # modified: src/tools/irm/irm.c # modified: src/tools/irm/irm_bind.c # modified: src/tools/irm/irm_ipcp.c # modified: src/tools/irm/irm_unbind.c # # Untracked files: # killouroboros.sh # start.sh #
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/irm/irm.c14
-rw-r--r--src/tools/irm/irm_bind.c2
-rw-r--r--src/tools/irm/irm_ipcp.c12
-rw-r--r--src/tools/irm/irm_unbind.c2
4 files changed, 15 insertions, 15 deletions
diff --git a/src/tools/irm/irm.c b/src/tools/irm/irm.c
index be758098..320ce97a 100644
--- a/src/tools/irm/irm.c
+++ b/src/tools/irm/irm.c
@@ -47,13 +47,13 @@ static const struct cmd {
const char * cmd;
int (* func)(int argc, char ** argv);
} cmds[] = {
- { "ipcp", ipcp_cmd },
- { "bind", bind_cmd },
- { "unbind", unbind_cmd },
- { "register", do_register },
- { "unregister", do_unregister },
- { "help", do_help },
- { 0 }
+ { "ipcp", ipcp_cmd },
+ { "bind", bind_cmd },
+ { "unbind", unbind_cmd },
+ { "register", do_register },
+ { "unregister", do_unregister },
+ { "help", do_help },
+ { NULL, NULL }
};
static int do_cmd(const char * argv0,
diff --git a/src/tools/irm/irm_bind.c b/src/tools/irm/irm_bind.c
index bb441573..aafa2f75 100644
--- a/src/tools/irm/irm_bind.c
+++ b/src/tools/irm/irm_bind.c
@@ -51,7 +51,7 @@ static const struct cmd {
{ "api", do_bind_api },
{ "ipcp", do_bind_ipcp },
{ "help", do_help },
- { 0 }
+ { NULL, NULL }
};
static int do_cmd(const char * argv0,
diff --git a/src/tools/irm/irm_ipcp.c b/src/tools/irm/irm_ipcp.c
index 795281bb..004bbbe0 100644
--- a/src/tools/irm/irm_ipcp.c
+++ b/src/tools/irm/irm_ipcp.c
@@ -45,12 +45,12 @@ static const struct cmd {
const char * cmd;
int (* func)(int argc, char ** argv);
} cmds[] = {
- { "create", do_create_ipcp },
- { "destroy", do_destroy_ipcp },
- { "bootstrap", do_bootstrap_ipcp },
- { "enroll", do_enroll_ipcp },
- { "help", do_help },
- { 0 }
+ { "create", do_create_ipcp },
+ { "destroy", do_destroy_ipcp },
+ { "bootstrap", do_bootstrap_ipcp },
+ { "enroll", do_enroll_ipcp },
+ { "help", do_help },
+ { NULL, NULL }
};
static int do_cmd(const char * argv0,
diff --git a/src/tools/irm/irm_unbind.c b/src/tools/irm/irm_unbind.c
index 5d167e1c..a6b27907 100644
--- a/src/tools/irm/irm_unbind.c
+++ b/src/tools/irm/irm_unbind.c
@@ -51,7 +51,7 @@ static const struct cmd {
{ "api", do_unbind_api },
{ "ipcp", do_unbind_ipcp },
{ "help", do_help },
- { 0 }
+ { NULL, NULL }
};
static int do_cmd(const char * argv0, int argc, char ** argv)