From 72ac876248ca2d33b3e1170b2f86fb68daaacdc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Sat, 22 Oct 2016 12:53:02 +0300 Subject: char: rename chr_close/chr_free MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function is used to free the backend opaque pointer, let's name it accordingly. Signed-off-by: Marc-André Lureau Message-Id: <20161022095318.17775-23-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini --- backends/baum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/baum.c') diff --git a/backends/baum.c b/backends/baum.c index c537141..a516434 100644 --- a/backends/baum.c +++ b/backends/baum.c @@ -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; -- cgit v1.1