ch_monitor: Make virCHMonitorGet function static

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é <berrange@redhat.com>
Signed-off-by: William Douglas <william.douglas@intel.com>
This commit is contained in:
William Douglas 2021-09-08 11:01:16 -07:00 committed by Daniel P. Berrangé
parent 14da5cb95a
commit 3b164e6897

View File

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