libxl: constify libxl__stubdomain_is_linux
PATCH 1/1 libxl: constify libxl__stubdomain_is_linux
libxl__stubdomain_is_linux can take a const pointer, so make the change.
This isn't an issue in-tree, but was found with an OpenXT patch where it was called with only const libxl_domain_build_info available.
Signed-off-by Jason Andryuk <[email protected]>
--- tools/libs/light/libxl_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libs/light/libxl_internal.h +1 -1
@@ -2326,7 +2326,7 @@ bool libxl__stubdomain_is_linux_running(libxl__gc *gc, uint32_t domid) }static inline -bool libxl__stubdomain_is_linux (libxl_domain_build_info *b_info) +bool libxl__stubdomain_is_linux (const libxl_domain_build_info *b_info) {/* right now qemu-tranditional implies MiniOS stubdomain and qemu-xen * implies Linux stubdomain */
Signature · 1 line
2.35.1
Quoted 6 lines · Jason Andryuk
libxl__stubdomain_is_linuxcan take a const pointer, so make the change.This isn't an issue in-tree, but was found with an OpenXT patch where it was called with only const
libxl_domain_build_infoavailable.Signed-off-by Jason Andryuk <[email protected]>
Acked-by Anthony PERARD <[email protected]>
Thanks,
Signature · 1 line
Anthony PERARD