tools/libs: stat: Use const whenever we point to literal strings
authorJulien Grall <jgrall@amazon.com>
Tue, 18 May 2021 13:35:07 +0000 (14:35 +0100)
committerJulien Grall <jgrall@amazon.com>
Tue, 18 May 2021 13:54:05 +0000 (14:54 +0100)
commit89aae4ad8f495b647de33f2df5046b3ce68225f8
treeb23554d1aae70e869a60d3b64b2d7bb8fac082e8
parent8fc4916daf2aac34088ebd5ec3d6fd707ac4221d
tools/libs: stat: Use const whenever we point to literal strings

literal strings are not meant to be modified. So we should use const
char * rather than char * when we want to store a pointer to them.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/stat/xenstat_linux.c
tools/libs/stat/xenstat_qmp.c