diff mbox

[3/3] migration/socket: fix typo in file header

Message ID 1469691571-10819-4-git-send-email-caoj.fnst@cn.fujitsu.com
State New
Headers show

Commit Message

Cao jin July 28, 2016, 7:39 a.m. UTC
Code of inet socket & unix socket is merged together.
Also add some newlines, make code block well separated.

Cc: Daniel P. Berrange <berrange@redhat.com>
Cc: Juan Quintela <quintela@redhat.com> (maintainer:Migration)
Cc: Amit Shah <amit.shah@redhat.com> (maintainer:Migration)
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
 migration/socket.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Daniel P. Berrangé July 28, 2016, 8:08 a.m. UTC | #1
On Thu, Jul 28, 2016 at 03:39:31PM +0800, Cao jin wrote:
> Code of inet socket & unix socket is merged together.
> Also add some newlines, make code block well separated.
> 
> Cc: Daniel P. Berrange <berrange@redhat.com>
> Cc: Juan Quintela <quintela@redhat.com> (maintainer:Migration)
> Cc: Amit Shah <amit.shah@redhat.com> (maintainer:Migration)
> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
> ---
>  migration/socket.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>


Regards,
Daniel
diff mbox

Patch

diff --git a/migration/socket.c b/migration/socket.c
index 5c0a38f..00de1fe 100644
--- a/migration/socket.c
+++ b/migration/socket.c
@@ -1,5 +1,5 @@ 
 /*
- * QEMU live migration via Unix Domain Sockets
+ * QEMU live migration via socket
  *
  * Copyright Red Hat, Inc. 2009-2016
  *
@@ -94,10 +94,12 @@  static void socket_start_outgoing_migration(MigrationState *s,
 {
     QIOChannelSocket *sioc = qio_channel_socket_new();
     struct SocketConnectData *data = g_new0(struct SocketConnectData, 1);
+
     data->s = s;
     if (saddr->type == SOCKET_ADDRESS_KIND_INET) {
         data->hostname = g_strdup(saddr->u.inet.data->host);
     }
+
     qio_channel_socket_connect_async(sioc,
                                      saddr,
                                      socket_outgoing_migration,