]> Git Repo - qemu.git/blobdiff - tests/hd-geo-test.c
qapi: Plumb in 'boxed' to qapi generator lower levels
[qemu.git] / tests / hd-geo-test.c
index c84d1e75e029d48dd58105740d3508976d5643b9..12ee3929daf0016cd7d74b6ce9abafaa1fda9c19 100644 (file)
  * Improvements welcome.
  */
 
-#include <glib.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "libqtest.h"
 
-static const char test_image[] = "/tmp/qtest.XXXXXX";
-
 static char *create_test_img(int secs)
 {
     char *template = strdup("/tmp/qtest.XXXXXX");
@@ -214,7 +209,7 @@ static int setup_ide(int argc, char *argv[], int argv_sz,
 
     if (img_secs[img_idx] >= 0) {
         setup_mbr(img_idx, mbr);
-        s3 = g_strdup_printf(",file=%s", img_file_name[img_idx]);
+        s3 = g_strdup_printf(",format=raw,file=%s", img_file_name[img_idx]);
     } else {
         s3 = g_strdup(",media=cdrom");
     }
This page took 0.02421 seconds and 4 git commands to generate.