]> git.proxmox.com Git - pve-qemu-kvm.git/commitdiff
avoid compiler warnings
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 10 Jun 2015 15:48:49 +0000 (17:48 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 10 Jun 2015 15:48:49 +0000 (17:48 +0200)
debian/patches/backup-vma-extract-add-block-driver-type.patch

index 98fd6f39ab623ff32d72d9831d4af23d45d4ba77..6f6dabb41424aeb9215199c3edff1272482a6434 100644 (file)
@@ -1,15 +1,15 @@
-Index: qemu-kvm-devel/vma.c
+Index: new/vma.c
 ===================================================================
---- qemu-kvm-devel.orig/vma.c
-+++ qemu-kvm-devel/vma.c
+--- new.orig/vma.c
++++ new/vma.c
 @@ -299,7 +299,13 @@ static int extract_content(int argc, cha
              }
  
              BlockDriverState *bs = bdrv_new();
 -            if (errp || bdrv_open(&bs, devfn, NULL, NULL, flags, NULL, &errp)) {
 +
-+          char *tmp = g_strrstr(devfn, ".");
-+          char *format = (tmp == NULL) ? "raw" : ++tmp;
++          const char *tmp = g_strrstr(devfn, ".");
++          const char *format = (tmp == NULL) ? "raw" : ++tmp;
 +
 +          BlockDriver *drv = bdrv_find_format(format);
 +