diff options
author | Paolo Bonzini | 2014-06-18 08:43:55 +0200 |
---|---|---|
committer | Luiz Capitulino | 2014-06-23 17:12:28 +0200 |
commit | db39fcf1f690b02d612e2bfc00980700887abe03 (patch) | |
tree | 92274d002b118043816e66924b1d271c62ea2e3c /spice-qemu-char.c | |
parent | qapi event: clean up (diff) | |
download | qemu-db39fcf1f690b02d612e2bfc00980700887abe03.tar.gz qemu-db39fcf1f690b02d612e2bfc00980700887abe03.tar.xz qemu-db39fcf1f690b02d612e2bfc00980700887abe03.zip |
qemu-char: introduce qemu_chr_alloc
The next patch will modify this function to initialize state that is
common to all backends.
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'spice-qemu-char.c')
-rw-r--r-- | spice-qemu-char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spice-qemu-char.c b/spice-qemu-char.c index 6624559952..4518a4d97d 100644 --- a/spice-qemu-char.c +++ b/spice-qemu-char.c @@ -268,7 +268,7 @@ static CharDriverState *chr_open(const char *subtype, CharDriverState *chr; SpiceCharDriver *s; - chr = g_malloc0(sizeof(CharDriverState)); + chr = qemu_chr_alloc(); s = g_malloc0(sizeof(SpiceCharDriver)); s->chr = chr; s->active = false; |