From 24e0029764d502f95f2446ecaf257f76a7c7d6a1 Mon Sep 17 00:00:00 2001 From: Qiu Tingting Date: Tue, 2 Mar 2021 20:46:43 +0800 Subject: Add const in afb_verb_t type declaring Bug-AGL: SPEC-3831 Change-Id: I0463552ad9625d1360b06d8026bd03235496579c Signed-off-by: Qiu Tingting --- src/harvester-binding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/harvester-binding.c b/src/harvester-binding.c index 5968fba..fee52ad 100644 --- a/src/harvester-binding.c +++ b/src/harvester-binding.c @@ -51,7 +51,7 @@ static void ctrlapi_auth(afb_req_t request) afb_req_success(request, NULL, NULL); } -static afb_verb_t CtrlApiVerbs[] = { +static const afb_verb_t CtrlApiVerbs[] = { /* VERB'S NAME FUNCTION TO CALL SHORT DESCRIPTION */ { .verb = "ping", .callback = ctrlapi_ping, .info = "ping test for API" }, { .verb = "auth", .callback = ctrlapi_auth, .info = "Authenticate session to raise Level Of Assurance of the session" }, -- cgit 1.2.3-korg