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/msmouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/msmouse.c') diff --git a/backends/msmouse.c b/backends/msmouse.c index 85d08f753e..448369fd1c 100644 --- a/backends/msmouse.c +++ b/backends/msmouse.c @@ -133,7 +133,7 @@ static int msmouse_chr_write (struct CharDriverState *s, const uint8_t *buf, int return len; } -static void msmouse_chr_close (struct CharDriverState *chr) +static void msmouse_chr_free(struct CharDriverState *chr) { MouseState *mouse = chr->opaque; @@ -162,7 +162,7 @@ static CharDriverState *qemu_chr_open_msmouse(const char *id, return NULL; } chr->chr_write = msmouse_chr_write; - chr->chr_close = msmouse_chr_close; + chr->chr_free = msmouse_chr_free; chr->chr_accept_input = msmouse_chr_accept_input; chr->explicit_be_open = true; -- cgit v1.2.3