]> Git Repo - qemu.git/blobdiff - qemu-img.c
qapi: Change data type of the FOO_lookup generated for enum FOO
[qemu.git] / qemu-img.c
index a72a2e3133792a707567a45373339fa45739a13a..df984b11b904b63f93e7dc260f2cd15a1fceb4b2 100644 (file)
@@ -3489,7 +3489,7 @@ static int img_resize(int argc, char **argv)
             image_opts = true;
             break;
         case OPTION_PREALLOCATION:
-            prealloc = qapi_enum_parse(PreallocMode_lookup, optarg,
+            prealloc = qapi_enum_parse(&PreallocMode_lookup, optarg,
                                        PREALLOC_MODE__MAX, NULL);
             if (prealloc == PREALLOC_MODE__MAX) {
                 error_report("Invalid preallocation mode '%s'", optarg);
This page took 0.022584 seconds and 4 git commands to generate.