qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] fix inet_parse typo


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] fix inet_parse typo
Date: Wed, 10 Feb 2010 13:31:52 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0

On 02/09/2010 11:31 AM, Marcelo Tosatti wrote:
qemu_opt_set wants on/off, not yes/no.

Signed-off-by: Marcelo Tosatti<address@hidden>

Applied.  Thanks.

Regards,

Anthony Liguori
diff --git a/qemu-sockets.c b/qemu-sockets.c
index 8850516..a88b2a7 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;
  }









reply via email to

[Prev in Thread] Current Thread [Next in Thread]