aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ioam/lib-pot
diff options
context:
space:
mode:
authorJuraj Sloboda <jsloboda@cisco.com>2018-04-23 10:14:37 +0200
committerOle Trøan <otroan@employees.org>2018-04-25 13:05:26 +0000
commite9fcf23506866d50c2a88a6dd9d90bc2acf8c5c1 (patch)
treee20b26adb238b4d459bf785d0db92b418331d7e4 /src/plugins/ioam/lib-pot
parent580bba72e55961b1d3f98144244ac1780855f74a (diff)
Fix some build warnings about "Old Style VLA"
Change-Id: I69fee1dcf07a4d2eed69a59f0a36e63e3741ed4e Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
Diffstat (limited to 'src/plugins/ioam/lib-pot')
-rw-r--r--src/plugins/ioam/lib-pot/pot.api6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/ioam/lib-pot/pot.api b/src/plugins/ioam/lib-pot/pot.api
index f133748c460..45dc53793a0 100644
--- a/src/plugins/ioam/lib-pot/pot.api
+++ b/src/plugins/ioam/lib-pot/pot.api
@@ -40,7 +40,7 @@ autoreply define pot_profile_add {
u64 lpc;
u64 polynomial_public;
u8 list_name_len;
- u8 list_name[0];
+ u8 list_name[list_name_len];
};
/** \brief Proof of Transit(POT): Activate POT profile in the list
@@ -53,7 +53,7 @@ autoreply define pot_profile_activate {
u32 context;
u8 id;
u8 list_name_len;
- u8 list_name[0];
+ u8 list_name[list_name_len];
};
/** \brief Delete POT Profile
@@ -66,7 +66,7 @@ autoreply define pot_profile_del {
u32 client_index;
u32 context;
u8 list_name_len;
- u8 list_name[0];
+ u8 list_name[list_name_len];
};
/** \brief Show POT Profiles