From 00bf0bd2508dd7f7dc4c59d76b8971fca2f41157 Mon Sep 17 00:00:00 2001 From: Qiu Tingting Date: Fri, 5 Mar 2021 10:50:35 +0800 Subject: Add const in afb_verb_t type declaring Bug-AGL: SPEC-3831 Change-Id: Idc07bb8e2cfde35b67470a0e7bbb1bf87c017ef7 Signed-off-by: Qiu Tingting --- src/aft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aft.c b/src/aft.c index 9221d1b..cccf377 100644 --- a/src/aft.c +++ b/src/aft.c @@ -163,7 +163,7 @@ static void ctrlapi_sync(afb_req_t request) { pthread_mutex_unlock(&memo_lock); } -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 = "load", .callback = ctrlapi_load, .info = "load a API meant to launch test for a binding"}, -- cgit 1.2.3-korg