summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/generator.ml6
-rw-r--r--src/launch.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/generator.ml b/src/generator.ml
index da01f12e..0b3f263a 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -12679,12 +12679,12 @@ print_strings (char *const *argv)
| FileOut n
| Key n -> pr " printf (\"%%s\\n\", %s);\n" n
| BufferIn n ->
- pr " {\n";
- pr " size_t i;\n";
+ pr " {\n";
+ pr " size_t i;\n";
pr " for (i = 0; i < %s_size; ++i)\n" n;
pr " printf (\"<%%02x>\", %s[i]);\n" n;
pr " printf (\"\\n\");\n";
- pr " }\n";
+ pr " }\n";
| OptString n -> pr " printf (\"%%s\\n\", %s ? %s : \"null\");\n" n n
| StringList n | DeviceList n -> pr " print_strings (%s);\n" n
| Bool n -> pr " printf (\"%%s\\n\", %s ? \"true\" : \"false\");\n" n
diff --git a/src/launch.c b/src/launch.c
index 287cc402..eaf39742 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -764,7 +764,7 @@ test_qemu (guestfs_h *g)
goto error;
snprintf (cmd, sizeof cmd, "LC_ALL=C '%s' -nographic -version 2>/dev/null",
- g->qemu);
+ g->qemu);
fp = popen (cmd, "r");
if (fp) {