From e5465324dd11f8e9da33cf760e6166fdfe2e4304 Mon Sep 17 00:00:00 2001 From: Sergey Nikiforov Date: Sat, 14 Jan 2023 00:12:05 +0500 Subject: 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 --- src/vppinfra/error_bootstrap.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/vppinfra/error_bootstrap.h') 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 { \ -- cgit 1.2.3-korg