diff options
author | Florin Coras <fcoras@cisco.com> | 2022-01-26 16:28:58 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-01-27 20:01:18 +0000 |
commit | ae0e3e748f04a1fb9ad2393533a164611c417103 (patch) | |
tree | d3fcf457d7acc875871baeca63cb6d919427738a /src/plugins/mactime/builtins.c | |
parent | aedcfaf80c8a7dd55dc2a7d85a0e9bd0d3d97569 (diff) |
http_static: code cleanup
Type: refactor
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ic8838c8ef558d671740094a98b5a627a18c8c808
Diffstat (limited to 'src/plugins/mactime/builtins.c')
-rw-r--r-- | src/plugins/mactime/builtins.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/mactime/builtins.c b/src/plugins/mactime/builtins.c index 321502454a2..35a254f1a25 100644 --- a/src/plugins/mactime/builtins.c +++ b/src/plugins/mactime/builtins.c @@ -16,8 +16,7 @@ mactime_ip_neighbor_copy (index_t ipni, void *ctx) } static int -handle_get_mactime (http_builtin_method_type_t reqtype, - u8 * request, http_session_t * hs) +handle_get_mactime (http_req_method_t reqtype, u8 *request, hss_session_t *hs) { mactime_main_t *mm = &mactime_main; mactime_device_t *dp; @@ -169,7 +168,7 @@ mactime_url_init (vlib_main_t * vm) return; } - (*fp) (handle_get_mactime, "mactime.json", HTTP_BUILTIN_METHOD_GET); + (*fp) (handle_get_mactime, "mactime.json", HTTP_REQ_GET); } /* |