tools/libs: guest: Use const whenever we point to literal strings
authorJulien Grall <jgrall@amazon.com>
Tue, 18 May 2021 13:34:22 +0000 (14:34 +0100)
committerJulien Grall <jgrall@amazon.com>
Tue, 18 May 2021 13:54:05 +0000 (14:54 +0100)
commit8fc4916daf2aac34088ebd5ec3d6fd707ac4221d
tree7d3cd377315985aa180abbdfa33db3d59bc3671e
parentcaa9c4471d1d74b2d236467aaf7e63a806ac11a4
tools/libs: guest: 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/include/xenguest.h
tools/libs/guest/xg_dom_core.c
tools/libs/guest/xg_dom_elfloader.c
tools/libs/guest/xg_dom_hvmloader.c
tools/libs/guest/xg_dom_x86.c
tools/libs/guest/xg_private.h