From 3b164e6897bcf89739d49bab3a79b49f33146016 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Wed, 8 Sep 2021 11:01:16 -0700 Subject: [PATCH] ch_monitor: Make virCHMonitorGet function static MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The virCHMonitorGet function isn't going to be used outside of the monitor, so remove the initial declaration and define the function to be static. Reviewed-by: Daniel P. Berrangé Signed-off-by: William Douglas --- src/ch/ch_monitor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ch/ch_monitor.c b/src/ch/ch_monitor.c index 6dece576f3..fe29af03e6 100644 --- a/src/ch/ch_monitor.c +++ b/src/ch/ch_monitor.c @@ -54,7 +54,6 @@ VIR_ONCE_GLOBAL_INIT(virCHMonitor); int virCHMonitorShutdownVMM(virCHMonitor *mon); int virCHMonitorPutNoContent(virCHMonitor *mon, const char *endpoint); -int virCHMonitorGet(virCHMonitor *mon, const char *endpoint, virJSONValue **response); static int virCHMonitorBuildCPUJson(virJSONValue *content, virDomainDef *vmdef) @@ -634,7 +633,7 @@ curl_callback(void *contents, size_t size, size_t nmemb, void *userp) return content_size; } -int +static int virCHMonitorGet(virCHMonitor *mon, const char *endpoint, virJSONValue **response) { g_autofree char *url = NULL; -- 2.47.2