diff options
author | 2019-12-09 14:25:09 +0100 | |
---|---|---|
committer | 2019-12-10 04:11:04 +0000 | |
commit | 0fa66d618e7d839782a896f75bc8b0337cc2a2b8 (patch) | |
tree | 9a9b8593063d59dbf66cc6d09914df072c6663e6 /src/plugins/ioam/lib-pot/pot_api.c | |
parent | 668605fc873a6409f38df712106f4b1290d87648 (diff) |
ioam: use explicit api types
Also remove API boilerplate.
Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I62e795f5af3843af7912707ade4ba178ff326942
Diffstat (limited to 'src/plugins/ioam/lib-pot/pot_api.c')
-rw-r--r-- | src/plugins/ioam/lib-pot/pot_api.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/ioam/lib-pot/pot_api.c b/src/plugins/ioam/lib-pot/pot_api.c index 0d0e49de20a..2ecfc51d97a 100644 --- a/src/plugins/ioam/lib-pot/pot_api.c +++ b/src/plugins/ioam/lib-pot/pot_api.c @@ -43,8 +43,7 @@ static void vl_api_pot_profile_add_t_handler pot_profile *profile = NULL; u8 *name = 0; - if (mp->list_name_len) - name = format(0, "%s", mp->list_name); + name = vl_api_from_api_to_vec(&mp->list_name); pot_profile_list_init(name); id = mp->id; @@ -122,8 +121,7 @@ static void vl_api_pot_profile_activate_t_handler u8 id; u8 *name = NULL; - if (mp->list_name_len) - name = format(0, "%s", mp->list_name); + name = vl_api_from_api_to_vec(&mp->list_name); if (!pot_profile_list_is_enabled(name)) { rv = -1; } else { |