]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
libxl: constify libxl__stubdomain_is_linux
authorJason Andryuk <jandryuk@gmail.com>
Wed, 30 Mar 2022 18:17:22 +0000 (14:17 -0400)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 31 Mar 2022 18:50:03 +0000 (19:50 +0100)
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 <jandryuk@gmail.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
tools/libs/light/libxl_internal.h

index c0e7779d977c6ca48fc80b4bd392973133e7e2d8..a26daec04095157dc4e6f5dfa615c87e124df524 100644 (file)
@@ -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 */