*: Remove some for statement declarations
We generally require C99. Some compilers, e.g. gcc, barf on
'for' statement declared variables, if std={gnu,c}99 or higher is not
given - even while seemingly accepting other C99 constructs.
As it's trivial, remove these.
diff --git a/zebra/interface.c b/zebra/interface.c
index 6fa097f..f259eeb 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -2487,6 +2487,8 @@
static int
link_params_config_write (struct vty *vty, struct interface *ifp)
{
+ int i;
+
if ((ifp == NULL) || !HAS_LINK_PARAMS(ifp))
return -1;
@@ -2502,7 +2504,7 @@
vty_out(vty, " max-rsv-bw %g%s", iflp->max_rsv_bw, VTY_NEWLINE);
if (IS_PARAM_SET(iflp, LP_UNRSV_BW))
{
- for (int i = 0; i < 8; i++)
+ for (i = 0; i < 8; i++)
vty_out(vty, " unrsv-bw %d %g%s",
i, iflp->unrsv_bw[i], VTY_NEWLINE);
}