aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-03-15 12:15:45 +0100
committerDamjan Marion <damarion@cisco.com>2022-03-16 16:43:26 +0100
commit541de587a948225a8e66f970dc7a1640ed8e9bb9 (patch)
tree034dc8bcb357740be1108e58be06d2d06b1ff457 /src
parente8d67719fde74eee34d2a36f0d00343de4bbac7d (diff)
vpp: binary-api CLI weak linking workaround
For some unknown reason sometimes calling exec() ends up on weak exec() defined in src/vat/api_format.c which return -1 instead of using one few lines above. Another proof that use of weak symbols is bad idea. Luckily this can be easily workarounded. Type: fix Change-Id: Ic84e8525bff75c1b8186c233cd524aac4d95c8b5 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vlibmemory/vlibapi_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlibmemory/vlibapi_test.c b/src/vlibmemory/vlibapi_test.c
index 820096ab80d..bed4879030e 100644
--- a/src/vlibmemory/vlibapi_test.c
+++ b/src/vlibmemory/vlibapi_test.c
@@ -200,7 +200,7 @@ exec (vat_main_t *vam)
static int
api_cli (vat_main_t *vam)
{
- return exec (vam);
+ return exec_inband (vam);
}
static int