[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] net/socket: allow ipv6 for net_socket_liste
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] net/socket: allow ipv6 for net_socket_listen_init and net_socket_connect_init |
Date: |
Wed, 16 Mar 2011 21:30:54 +0000 |
On 16 March 2011 21:01, Juan Quintela <address@hidden> wrote:
> - ret = bind(fd, (struct sockaddr *)&saddr, sizeof(saddr));
> + ret = tcp_server_start(host_str, &fd);
> if (ret < 0) {
> - perror("bind");
> + perror("tcp_server_start");
> return -1;
> }
It looks like tcp_server_start() returns an error code
rather than setting errno, so isn't perror() wrong here?
-- PMM