tools/xenmon: xenbaked: Mark const the field text in stat_map_t

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 <jgrall@amazon.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
This commit is contained in:
Julien Grall committed 2021-05-18 14:54:05 +01:00
1 parent 4b7702727a
commit 01d84420fb
1 file changed
+1 -1
+1 -1
View File
@@ -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[] = {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.