summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhers <s3m2e1.6star@gmail.com>2018-09-22 17:53:06 +0330
committerKhers <s3m2e1.6star@gmail.com>2018-09-22 17:53:06 +0330
commitb74d99c8f36db6e23b0dbf9ec2dc9d8a05a7ac26 (patch)
tree3d4deabef6a87fecf14a28ea266890b14929138a
parentb7020d666d300843feeac23357bedb0d06152b0e (diff)
fix following error in debian jessie:
'‘for’ loop initial declarations are only allowed in C99 or C11 mode' Change-Id: Id842382f884122555abaa936c56cdfd305f2a5f3 Signed-off-by: Khers <s3m2e1.6star@gmail.com>
-rw-r--r--src/vpp/api/custom_dump.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c
index e40a7dca938..70fd7142aeb 100644
--- a/src/vpp/api/custom_dump.c
+++ b/src/vpp/api/custom_dump.c
@@ -766,7 +766,8 @@ static void *vl_api_ip_add_del_route_t_print
if (mp->next_hop_n_out_labels)
{
- for (u8 i = 0; i < mp->next_hop_n_out_labels; i++)
+ u8 i;
+ for (i = 0; i < mp->next_hop_n_out_labels; i++)
{
s = format (s, "out-label %d ",
ntohl (mp->next_hop_out_label_stack[i].label));
@@ -842,7 +843,8 @@ static void *vl_api_mpls_route_add_del_t_print
if (mp->mr_next_hop_n_out_labels)
{
- for (u8 i = 0; i < mp->mr_next_hop_n_out_labels; i++)
+ u8 i;
+ for (i = 0; i < mp->mr_next_hop_n_out_labels; i++)
{
s = format (s, "out-label %d ",
ntohl (mp->mr_next_hop_out_label_stack[i].label));
@@ -959,7 +961,8 @@ static void *vl_api_sr_mpls_policy_add_t_print
if (mp->n_segments)
{
- for (int i = 0; i < mp->n_segments; i++)
+ int i;
+ for (i = 0; i < mp->n_segments; i++)
s = format (s, "next %d ", ntohl (mp->segments[i]));
}