From: Julien Grall <jgr...@amazon.com> The field text in stat_map_t will point to string literals. So mark it as const to allow the compiler to catch any modified of the string.
Signed-off-by: Julien Grall <jgr...@amazon.com> --- tools/xenmon/xenbaked.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xenmon/xenbaked.c b/tools/xenmon/xenbaked.c index d3f940a26bb2..1ed34334c824 100644 --- a/tools/xenmon/xenbaked.c +++ b/tools/xenmon/xenbaked.c @@ -182,7 +182,7 @@ typedef struct { int event_count; int event_id; - char *text; + const char *text; } stat_map_t; stat_map_t stat_map[] = { -- 2.17.1