From: Markus Armbruster Date: Mon, 9 Jan 2023 19:03:11 +0000 (+0100) Subject: ui/spice: Give hmp_info_spice()'s channel_names[] static linkage X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=10e3c47a5d62dc746375f55b7b7313f0343dab1d;p=qemu.git ui/spice: Give hmp_info_spice()'s channel_names[] static linkage Suggested-by: Philippe Mathieu-Daudé Signed-off-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230109190321.1056914-8-armbru@redhat.com> --- diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c index 67e39f408e..f4d0d031df 100644 --- a/monitor/hmp-cmds.c +++ b/monitor/hmp-cmds.c @@ -611,7 +611,7 @@ void hmp_info_spice(Monitor *mon, const QDict *qdict) SpiceChannelList *chan; SpiceInfo *info; const char *channel_name; - const char * const channel_names[] = { + static const char *const channel_names[] = { [SPICE_CHANNEL_MAIN] = "main", [SPICE_CHANNEL_DISPLAY] = "display", [SPICE_CHANNEL_INPUTS] = "inputs",