Skip to contentSkip to conversation

trivial fix of inet_listen() parameter

PATCH In review Amos Kong 2 participants 2 messages Sep 29, 2012

lore
Share & tools
lore

Amos Kong

author
#0 lore raw

PATCH 1/1 trivial fix of inet_listen() parameter

.. int inet_listen(const char *str, char *ostr, int olen,
.. int socktype, int port_offset, Error **errp)

Here 'ostr' is NULL, so change 'olen' to zero.

---
 migration-tcp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
migration-tcp.c +1 -1
index a15c2b8..34d6d89 100644
@@ -123,7 +123,7 @@ int tcp_start_incoming_migration(const char *host_port, Error **errp)
 {
     int s;
 
-    s = inet_listen(host_port, NULL, 256, SOCK_STREAM, 0, errp);
+    s = inet_listen(host_port, NULL, 0, SOCK_STREAM, 0, errp);
 
     if (s < 0) {
         return -1;
Signature · 1 line
1.7.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 26 lines · On Sat, 29 Sep 2012 17:32:31 +0800 Amos Kong <[email protected]> wrote:

.. int inet_listen(const char *str, char *ostr, int olen,
.. int socktype, int port_offset, Error **errp)

Here 'ostr' is NULL, so change 'olen' to zero.

---
 migration-tcp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
migration-tcp.c +1 -1
index a15c2b8..34d6d89 100644
@@ -123,7 +123,7 @@ int tcp_start_incoming_migration(const char *host_port, Error **errp)
 {
     int s;
 
-    s = inet_listen(host_port, NULL, 256, SOCK_STREAM, 0, errp);
+    s = inet_listen(host_port, NULL, 0, SOCK_STREAM, 0, errp);
 
     if (s < 0) {
         return -1;
Signature · 1 line
1.7.1
Signature · 2 lines
Regards,
  Igor