]> git.proxmox.com Git - mirror_qemu.git/commit - chardev/char.c
char: use a static array for backends
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 21 Oct 2016 13:30:29 +0000 (16:30 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 17:07:58 +0000 (18:07 +0100)
commita1698bf183a2fc05ff980e06c798408d5898bc48
tree589bd8da65ebaef6f648fcc1998f7225e23a7fcd
parent0b812f31925f2ed50eb54d2be6ac9291bf67b890
char: use a static array for backends

Number and kinds of backends is known at compile-time, use a fixed-sized
static array to simplify iterations & lookups.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-char.c