From 2512a026fab8d526e623426a3002599a2de09d16 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Tue, 17 Jan 2023 15:10:13 +0400 Subject: ui: rename cursor_{get->ref}, return it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The naming is more conventional in QEMU code, and allows to simplify some code by changing the API design, so it returns the input parameter, instead of void. Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé --- ui/cursor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/cursor.c') diff --git a/ui/cursor.c b/ui/cursor.c index 31b09bf058..6fe67990e2 100644 --- a/ui/cursor.c +++ b/ui/cursor.c @@ -106,9 +106,10 @@ QEMUCursor *cursor_alloc(int width, int height) return c; } -void cursor_get(QEMUCursor *c) +QEMUCursor *cursor_ref(QEMUCursor *c) { c->refcount++; + return c; } void cursor_unref(QEMUCursor *c) -- cgit 1.4.1