summaryrefslogtreecommitdiffstats
path: root/examples/to-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/to-xml.c')
-rw-r--r--examples/to-xml.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/to-xml.c b/examples/to-xml.c
index 537ae915..45994cb3 100644
--- a/examples/to-xml.c
+++ b/examples/to-xml.c
@@ -48,7 +48,9 @@ main (int argc, char *argv[])
}
for (i = 1; i < argc; ++i)
- CALL (guestfs_add_drive (g, argv[i]), -1);
+ CALL (guestfs_add_drive_opts (g, argv[i],
+ GUESTFS_ADD_DRIVE_OPTS_FORMAT, "raw",
+ -1), -1);
CALL (guestfs_launch (g), -1);