tools/misc: Use const whenever we point to literal strings
authorJulien Grall <jgrall@amazon.com>
Tue, 18 May 2021 13:50:32 +0000 (14:50 +0100)
committerJulien Grall <jgrall@amazon.com>
Tue, 18 May 2021 13:54:05 +0000 (14:54 +0100)
commit5605cfd49a18df41a21fb50cd81528312a39d7c9
tree5fffebaaa656ff67a1b7d5d76c25b6f9f17fee46
parent89aae4ad8f495b647de33f2df5046b3ce68225f8
tools/misc: 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 we 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/misc/xen-detect.c
tools/misc/xenhypfs.c