From: William Douglas Date: Wed, 8 Sep 2021 18:01:16 +0000 (-0700) Subject: ch_monitor: Make virCHMonitorGet function static X-Git-Tag: v7.8.0-rc1~265 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b164e6897bcf89739d49bab3a79b49f33146016;p=thirdparty%2Flibvirt.git 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é Signed-off-by: William Douglas --- 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;