summaryrefslogtreecommitdiffstats
path: root/src/vlib/unix/plugin.c
diff options
context:
space:
mode:
authorSergey Nikiforov <void234@gmail.com>2023-01-14 00:15:13 +0500
committerDave Barach <vpp@barachs.net>2023-01-14 12:12:25 +0000
commite917bf75d911fae3a553b77e64cd4c37984948a8 (patch)
tree0a64061035712decab9a56c1b502dd098e7a9c94 /src/vlib/unix/plugin.c
parente5465324dd11f8e9da33cf760e6166fdfe2e4304 (diff)
vlib: add const to char* params of several funcs
These functions do not need modifiable strings. It helps with linker sections as well as C++ compatibility. It is a good style to use const where approriate. Type: refactor Signed-off-by: void234@gmail.com Change-Id: Ib437a01663aa61860c6a938d869ed1111da71ec7
Diffstat (limited to 'src/vlib/unix/plugin.c')
-rw-r--r--src/vlib/unix/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/unix/plugin.c b/src/vlib/unix/plugin.c
index 22035927e96..1260089f4ff 100644
--- a/src/vlib/unix/plugin.c
+++ b/src/vlib/unix/plugin.c
@@ -35,7 +35,7 @@ char *vlib_plugin_app_version __attribute__ ((weak));
char *vlib_plugin_app_version = "";
void *
-vlib_get_plugin_symbol (char *plugin_name, char *symbol_name)
+vlib_get_plugin_symbol (const char *plugin_name, const char *symbol_name)
{
plugin_main_t *pm = &vlib_plugin_main;
uword *p;