net: Make net_client_init() static

The function is only used within net.c, so there's no need that
this is a global function.

While we're at it, also remove the unused prototype compute_mcast_idx()
(the function has been removed in commit d9caeb09b1).

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
Thomas Huth 2018-02-21 11:18:33 +01:00 committed by Jason Wang
parent 253dc14cad
commit aa09a485c2
2 changed files with 1 additions and 3 deletions

View file

@ -1119,7 +1119,7 @@ static void show_netdevs(void)
}
}
int net_client_init(QemuOpts *opts, bool is_netdev, Error **errp)
static int net_client_init(QemuOpts *opts, bool is_netdev, Error **errp)
{
void *object = NULL;
Error *err = NULL;