]> Git Repo - qemu.git/blobdiff - qga/commands.c
qga: use ARRAY_SIZE macro
[qemu.git] / qga / commands.c
index 3333ed50b206fa193485ab23961de48b27ba7268..6d710dbb204247e1a17c1df37def4c6c936fa9d3 100644 (file)
@@ -13,6 +13,7 @@
 #include "qemu/osdep.h"
 #include "qga/guest-agent-core.h"
 #include "qga-qmp-commands.h"
+#include "qapi/error.h"
 #include "qapi/qmp/qerror.h"
 #include "qemu/base64.h"
 #include "qemu/cutils.h"
@@ -485,7 +486,7 @@ int ga_parse_whence(GuestFileWhence *whence, Error **errp)
 {
     /* Exploit the fact that we picked values to match QGA_SEEK_*. */
     if (whence->type == QTYPE_QSTRING) {
-        whence->type = QTYPE_QINT;
+        whence->type = QTYPE_QNUM;
         whence->u.value = whence->u.name;
     }
     switch (whence->u.value) {
This page took 0.024009 seconds and 4 git commands to generate.