summaryrefslogtreecommitdiffstats
path: root/src/plugins/mactime
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-03-11 12:17:33 +0100
committerFlorin Coras <florin.coras@gmail.com>2021-03-11 19:00:20 +0000
commit143610014ab91f7998014f4322c36c8b07f50d5f (patch)
tree72398cf11867f639433ae4be77635bf861bd8bcf /src/plugins/mactime
parenta31698bb7401f6e2389c0e805bf280ae52278524 (diff)
misc: fix gcc-11 build
Type: fix Change-Id: Ia17c8255806a2575bb75ed37050b47ddb347050c Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/mactime')
-rw-r--r--src/plugins/mactime/builtins.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/mactime/builtins.c b/src/plugins/mactime/builtins.c
index d7fd7a0b32b..321502454a2 100644
--- a/src/plugins/mactime/builtins.c
+++ b/src/plugins/mactime/builtins.c
@@ -42,12 +42,10 @@ handle_get_mactime (http_builtin_method_type_t reqtype,
if (PREDICT_FALSE ((now - mm->sunday_midnight) > 86400.0 * 7.0))
mm->sunday_midnight = clib_timebase_find_sunday_midnight (now);
- /* *INDENT-OFF* */
- pool_foreach (dp, mm->devices)
- {
- vec_add1 (pool_indices, dp - mm->devices);
+ pool_foreach (dp, mm->devices)
+ {
+ vec_add1 (pool_indices, dp - mm->devices);
}
- /* *INDENT-ON* */
s = format (s, "{%smactime%s: [\n", q, q);