aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/unformat.c
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2021-10-13 11:35:15 +0200
committerDamjan Marion <dmarion@me.com>2021-10-13 14:31:28 +0000
commit82f618c35f4a7182a98fda69fa07f2335a7d03ea (patch)
tree3dfc47951ef91e90e72cbd9a83d378093655566d /src/vppinfra/unformat.c
parent2dfeef522c1969d549dc0093a802f3cb5affee9f (diff)
dpdk: fix vmbus device name parsing
unformat_init_vector() expects a vector, not a NULL-terminated C-string. Type: fix Change-Id: I20a266243f63d94b0c6fe24e25ee8346c08c8ff2 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vppinfra/unformat.c')
-rw-r--r--src/vppinfra/unformat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vppinfra/unformat.c b/src/vppinfra/unformat.c
index 172182f8a34..0f6da4fd3b9 100644
--- a/src/vppinfra/unformat.c
+++ b/src/vppinfra/unformat.c
@@ -1026,7 +1026,8 @@ unformat_init_command_line (unformat_input_t * input, char *argv[])
}
__clib_export void
-unformat_init_string (unformat_input_t * input, char *string, int string_len)
+unformat_init_string (unformat_input_t *input, const char *string,
+ int string_len)
{
unformat_init (input, 0, 0);
if (string_len > 0)