summaryrefslogtreecommitdiff
path: root/qemu-sockets.c
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2010-02-09 15:31:46 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-10 12:46:06 -0600
commitc054da066037c8c4c4faa28af28178655ea9e59c (patch)
tree98a40d17f49c8566863b2151ffbe548a998ee075 /qemu-sockets.c
parent2b6eee8a18d3d2fee91d1c37b651d6707e804cb3 (diff)
downloadqemu-c054da066037c8c4c4faa28af28178655ea9e59c.tar.gz
qemu-c054da066037c8c4c4faa28af28178655ea9e59c.tar.bz2
qemu-c054da066037c8c4c4faa28af28178655ea9e59c.zip
fix inet_parse typo
qemu_opt_set wants on/off, not yes/no. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-sockets.c')
-rw-r--r--qemu-sockets.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/qemu-sockets.c b/qemu-sockets.c
index d912fed16b..23c3def2a4 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -424,7 +424,7 @@ static int inet_parse(QemuOpts *opts, const char *str)
__FUNCTION__, str);
return -1;
}
- qemu_opt_set(opts, "ipv6", "yes");
+ qemu_opt_set(opts, "ipv6", "on");
} else if (qemu_isdigit(str[0])) {
/* IPv4 addr */
if (2 != sscanf(str,"%64[0-9.]:%32[^,]%n",addr,port,&pos)) {
@@ -432,7 +432,7 @@ static int inet_parse(QemuOpts *opts, const char *str)
__FUNCTION__, str);
return -1;
}
- qemu_opt_set(opts, "ipv4", "yes");
+ qemu_opt_set(opts, "ipv4", "on");
} else {
/* hostname */
if (2 != sscanf(str,"%64[^:]:%32[^,]%n",addr,port,&pos)) {
@@ -450,9 +450,9 @@ static int inet_parse(QemuOpts *opts, const char *str)
if (h)
qemu_opt_set(opts, "to", h+4);
if (strstr(optstr, ",ipv4"))
- qemu_opt_set(opts, "ipv4", "yes");
+ qemu_opt_set(opts, "ipv4", "on");
if (strstr(optstr, ",ipv6"))
- qemu_opt_set(opts, "ipv6", "yes");
+ qemu_opt_set(opts, "ipv6", "on");
return 0;
}