]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libxl: migration: Use 'unsigned int' for flags
authorPeter Krempa <pkrempa@redhat.com>
Tue, 22 Nov 2022 12:03:39 +0000 (13:03 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Dec 2022 15:18:37 +0000 (16:18 +0100)
Fix the type for few internal functions. Externally the APIs were
already limiting 'flags' to 'unsigned int'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libxl/libxl_migration.c

index 60485403340c12c169e013e06ac0e26a44980688..0867194d9eec0adb21a2399a436f59a916d9ab40 100644 (file)
@@ -329,7 +329,7 @@ libxlMigrateDstReceive(virNetSocket *sock,
 static int
 libxlDoMigrateSrcSend(libxlDriverPrivate *driver,
                       virDomainObj *vm,
-                      unsigned long flags,
+                      unsigned int flags,
                       int sockfd)
 {
     libxlDriverConfig *cfg = libxlDriverConfigGet(driver);
@@ -877,7 +877,7 @@ struct libxlTunnelControl {
 static int
 libxlMigrationSrcStartTunnel(libxlDriverPrivate *driver,
                              virDomainObj *vm,
-                             unsigned long flags,
+                             unsigned int flags,
                              virStreamPtr st,
                              struct libxlTunnelControl **tnl)
 {