mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
char: rename chr_close/chr_free
The function is used to free the backend opaque pointer, let's name it accordingly. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20161022095318.17775-23-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
a4afa548fc
commit
72ac876248
6 changed files with 38 additions and 38 deletions
|
@ -551,7 +551,7 @@ static void baum_chr_read(void *opaque)
|
|||
}
|
||||
}
|
||||
|
||||
static void baum_close(struct CharDriverState *chr)
|
||||
static void baum_free(struct CharDriverState *chr)
|
||||
{
|
||||
BaumDriverState *baum = chr->opaque;
|
||||
|
||||
|
@ -589,7 +589,7 @@ static CharDriverState *chr_baum_init(const char *id,
|
|||
chr->opaque = baum;
|
||||
chr->chr_write = baum_write;
|
||||
chr->chr_accept_input = baum_accept_input;
|
||||
chr->chr_close = baum_close;
|
||||
chr->chr_free = baum_free;
|
||||
|
||||
handle = g_malloc0(brlapi_getHandleSize());
|
||||
baum->brlapi = handle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue