From 697426e440802e3e4d25494936f4b82dbaabf708 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 6 May 2010 15:32:56 -0600 Subject: [PATCH] qemu: use better types * src/qemu/qemu_driver.c (qemudFindDisk): Mark parameter const. (qemudShrinkDisks): Mark parameter unsigned. --- src/qemu/qemu_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 90b9089eca..cbf6602af8 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -7866,7 +7866,7 @@ cleanup: } -static inline int qemudFindDisk(virDomainDefPtr def, char *dst) +static inline int qemudFindDisk(virDomainDefPtr def, const char *dst) { int i; @@ -7879,7 +7879,7 @@ static inline int qemudFindDisk(virDomainDefPtr def, char *dst) return -1; } -static inline void qemudShrinkDisks(virDomainDefPtr def, int i) +static inline void qemudShrinkDisks(virDomainDefPtr def, size_t i) { if (def->ndisks > 1) { memmove(def->disks + i, -- GitLab