summaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-01-27 13:41:28 -0500
committerGerrit Code Review <gerrit@fd.io>2016-01-27 19:45:57 +0000
commit63a814d9b642616b35aac276577a8fb10f74e251 (patch)
tree334d22c432502123a63e25189014b378c5bdecdd /vlib
parentda8d4450553ef09aff64eeecb774cb6abecabdb0 (diff)
Warnings be gone.
Change-Id: I53730fd2ccd78fb73e11af77f8ffff19d75ebd95 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/trace.c2
-rw-r--r--vlib/vlib/unix/main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/vlib/vlib/trace.c b/vlib/vlib/trace.c
index d133ca4c627..03f25385723 100644
--- a/vlib/vlib/trace.c
+++ b/vlib/vlib/trace.c
@@ -235,7 +235,7 @@ cli_show_trace_buffer (vlib_main_t * vm,
index++;
}));
- vlib_cli_output (vm, s);
+ vlib_cli_output (vm, (char *) s);
vec_free (s);
return 0;
}
diff --git a/vlib/vlib/unix/main.c b/vlib/vlib/unix/main.c
index 1aac32759a8..6ff63f84733 100644
--- a/vlib/vlib/unix/main.c
+++ b/vlib/vlib/unix/main.c
@@ -403,7 +403,7 @@ static uword thread0 (uword arg)
unformat_input_t input;
int i;
- unformat_init_command_line (&input, vm->argv);
+ unformat_init_command_line (&input, (char **)vm->argv);
i = vlib_main (vm, &input);
unformat_free (&input);
@@ -430,7 +430,7 @@ int vlib_unix_main (int argc, char * argv[])
if (i)
return i;
- unformat_init_command_line (&input, vm->argv);
+ unformat_init_command_line (&input, (char **)vm->argv);
vm->init_functions_called = hash_create (0, /* value bytes */ 0);
e = vlib_call_all_config_functions (vm, &input, 1 /* early */);
if (e != 0)