From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXbzT-0001fE-6v for qemu-devel@nongnu.org; Wed, 20 Jan 2010 09:57:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXbzS-0001eb-JV for qemu-devel@nongnu.org; Wed, 20 Jan 2010 09:57:02 -0500 Received: from [199.232.76.173] (port=54382 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXbzS-0001eM-CY for qemu-devel@nongnu.org; Wed, 20 Jan 2010 09:57:02 -0500 Received: from qw-out-1920.google.com ([74.125.92.147]:52045) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXbzS-0004L9-1P for qemu-devel@nongnu.org; Wed, 20 Jan 2010 09:57:02 -0500 Received: by qw-out-1920.google.com with SMTP id 4so181087qwk.4 for ; Wed, 20 Jan 2010 06:57:01 -0800 (PST) Message-ID: <4B5719BA.4060406@codemonkey.ws> Date: Wed, 20 Jan 2010 08:56:58 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 1/3] net: Make inet_strfamily() public References: <1263994960-8411-1-git-send-email-lcapitulino@redhat.com> <1263994960-8411-2-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1263994960-8411-2-git-send-email-lcapitulino@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: qemu-devel@nongnu.org On 01/20/2010 07:42 AM, Luiz Capitulino wrote: > So that it can be used by other subsystems. > > Signed-off-by: Luiz Capitulino > Applied. Thanks. Regards, Anthony Liguori > --- > qemu-sockets.c | 2 +- > qemu_socket.h | 1 + > 2 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/qemu-sockets.c b/qemu-sockets.c > index 8850516..720de22 100644 > --- a/qemu-sockets.c > +++ b/qemu-sockets.c > @@ -91,7 +91,7 @@ static void inet_setport(struct addrinfo *e, int port) > } > } > > -static const char *inet_strfamily(int family) > +const char *inet_strfamily(int family) > { > switch (family) { > case PF_INET6: return "ipv6"; > diff --git a/qemu_socket.h b/qemu_socket.h > index 86bdbf5..7ee46ac 100644 > --- a/qemu_socket.h > +++ b/qemu_socket.h > @@ -44,6 +44,7 @@ int inet_listen(const char *str, char *ostr, int olen, > int inet_connect_opts(QemuOpts *opts); > int inet_connect(const char *str, int socktype); > int inet_dgram_opts(QemuOpts *opts); > +const char *inet_strfamily(int family); > > int unix_listen_opts(QemuOpts *opts); > int unix_listen(const char *path, char *ostr, int olen); >