diff mbox

[1/3] net: Make inet_strfamily() public

Message ID 1263994960-8411-2-git-send-email-lcapitulino@redhat.com
State New
Headers show

Commit Message

Luiz Capitulino Jan. 20, 2010, 1:42 p.m. UTC
So that it can be used by other subsystems.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 qemu-sockets.c |    2 +-
 qemu_socket.h  |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

Comments

Anthony Liguori Jan. 20, 2010, 2:56 p.m. UTC | #1
On 01/20/2010 07:42 AM, Luiz Capitulino wrote:
> So that it can be used by other subsystems.
>
> Signed-off-by: Luiz Capitulino<lcapitulino@redhat.com>
>    

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);
>
diff mbox

Patch

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);