migration_tls_client_create() is not used externally by anyone.
Make it static.
Signed-off-by: Avihai Horon <avihaih@nvidia.com>
---
migration/tls.h | 4 ----
migration/tls.c | 2 +-
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/migration/tls.h b/migration/tls.h
index a6babbfa14..87a79b4102 100644
--- a/migration/tls.h
+++ b/migration/tls.h
@@ -28,10 +28,6 @@ void migration_tls_channel_process_incoming(MigrationState *s,
QIOChannel *ioc,
Error **errp);
-QIOChannelTLS *migration_tls_client_create(QIOChannel *ioc,
- const char *hostname,
- Error **errp);
-
typedef void (*MigTLSConCallback)(QIOChannel *ioc, void *opaque, Error *err);
/**
diff --git a/migration/tls.c b/migration/tls.c
index 99c71e4fb6..8f427ecc98 100644
--- a/migration/tls.c
+++ b/migration/tls.c
@@ -97,7 +97,7 @@ void migration_tls_channel_process_incoming(MigrationState *s,
NULL);
}
-QIOChannelTLS *migration_tls_client_create(QIOChannel *ioc,
+static QIOChannelTLS *migration_tls_client_create(QIOChannel *ioc,
const char *hostname,
Error **errp)
{
--
2.26.3