From e6d9a8cb609508e7abc542f031885bcd76ca1f5e Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 10 Jun 2015 17:48:49 +0200 Subject: [PATCH] avoid compiler warnings --- .../backup-vma-extract-add-block-driver-type.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/patches/backup-vma-extract-add-block-driver-type.patch b/debian/patches/backup-vma-extract-add-block-driver-type.patch index 98fd6f3..6f6dabb 100644 --- a/debian/patches/backup-vma-extract-add-block-driver-type.patch +++ b/debian/patches/backup-vma-extract-add-block-driver-type.patch @@ -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); + -- 2.39.2