aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/error_bootstrap.h
diff options
context:
space:
mode:
authorSergey Nikiforov <void234@gmail.com>2023-01-14 00:12:05 +0500
committerDave Barach <vpp@barachs.net>2023-01-14 12:12:25 +0000
commite5465324dd11f8e9da33cf760e6166fdfe2e4304 (patch)
treed21ba7279c18360833193a249667c97b8a11fab9 /src/vppinfra/error_bootstrap.h
parent1d84abc93ed0f41ee7ced184e57ab9b6241c6eba (diff)
vppinfra: 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: I8d1e922197b3594122296e8c1af57e0a8ec0bf3d
Diffstat (limited to 'src/vppinfra/error_bootstrap.h')
-rw-r--r--src/vppinfra/error_bootstrap.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vppinfra/error_bootstrap.h b/src/vppinfra/error_bootstrap.h
index 185f4c6c4af..ae23d1bcca8 100644
--- a/src/vppinfra/error_bootstrap.h
+++ b/src/vppinfra/error_bootstrap.h
@@ -62,9 +62,8 @@ enum
/* Low level error reporting function.
Code specifies whether to call exit, abort or nothing at
all (for non-fatal warnings). */
-extern void _clib_error (int code,
- char *function_name,
- uword line_number, char *format, ...);
+extern void _clib_error (int code, const char *function_name,
+ uword line_number, const char *format, ...);
#define ASSERT(truth) \
do { \