From: Dave Barach Date: Fri, 18 Oct 2019 15:31:20 +0000 (-0400) Subject: mactime: fix handle_get_mactime fcn prototype X-Git-Tag: v20.05-rc0~582 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F22854%2F1;p=vpp.git mactime: fix handle_get_mactime fcn prototype Type: fix Signed-off-by: Dave Barach Change-Id: I9576ade941b10d1605f6c6714f312ae2a8ad5065 --- diff --git a/src/plugins/mactime/builtins.c b/src/plugins/mactime/builtins.c index a0d7b5f731e..906164e6a0d 100644 --- a/src/plugins/mactime/builtins.c +++ b/src/plugins/mactime/builtins.c @@ -5,7 +5,8 @@ #include static int -handle_get_mactime (u8 * request, http_session_t * hs) +handle_get_mactime (http_builtin_method_type_t reqtype, + u8 * request, http_session_t * hs) { mactime_main_t *mm = &mactime_main; mactime_device_t *dp; @@ -24,9 +25,9 @@ handle_get_mactime (u8 * request, http_session_t * hs) vec_reset_length (mm->arp_cache_copy); pool = ip4_neighbors_pool (); - pool_foreach (n, pool, ( - { - vec_add1 (mm->arp_cache_copy, n[0]);})); + /* *INDENT-OFF* */ + pool_foreach (n, pool, ({ vec_add1 (mm->arp_cache_copy, n[0]);})); + /* *INDENT-ON* */ now = clib_timebase_now (&mm->timebase);