summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-10-18 11:31:20 -0400
committerDave Barach <dave@barachs.net>2019-10-18 11:36:17 -0400
commit55cc4c4f0aaee3314d7cc105a173ff920c92e767 (patch)
treefca8d28e6a3e635871d9c85c36cbeb68ee0a1010 /src
parent9cd8f33979e20dd963b1071a13e6625ff5aa6974 (diff)
mactime: fix handle_get_mactime fcn prototype
Type: fix Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I9576ade941b10d1605f6c6714f312ae2a8ad5065
Diffstat (limited to 'src')
-rw-r--r--src/plugins/mactime/builtins.c9
1 files changed, 5 insertions, 4 deletions
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 <vlib/unix/plugin.h>
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);