Skip to contentSkip to conversation

extboot: silence compiler warning

PATCH Applied Jan Kiszka 2 participants 2 messages Apr 2, 2009 – Apr 5, 2009 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 extboot: silence compiler warning

---

 qemu/hw/extboot.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
qemu/hw/extboot.c +2 -2
index 32e6226..13ffafa 100644
@@ -77,8 +77,8 @@ static void extboot_write_cmd(void *opaque, uint32_t addr, uint32_t value)
     BlockDriverState *bs = opaque;
     int cylinders, heads, sectors, err;
     uint64_t nb_sectors;
-    target_phys_addr_t pa;
-    int blen;
+    target_phys_addr_t pa = 0;
+    int blen = 0;
     void *buf = NULL;
 
     if (cmd->type == 0x01 || cmd->type == 0x02) {
Applied
#1 lore raw

Jan Kiszka wrote:

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function