mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
4b7702727a
commit
01d84420fb
1 file changed
+1
-1
@@ -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[] = {
|
||||
|
||||