ui/spice: Give hmp_info_spice()'s channel_names[] static linkage

Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230109190321.1056914-8-armbru@redhat.com>
master
Markus Armbruster 2023-01-09 20:03:11 +01:00
parent dfa2584816
commit 10e3c47a5d
1 changed files with 1 additions and 1 deletions

View File

@ -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",