diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-01-17 15:10:13 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-13 22:57:39 +0400 |
commit | 2512a026fab8d526e623426a3002599a2de09d16 (patch) | |
tree | 72a8c76fda4ee1cacf2a690a6f87139762fb702d /ui/cursor.c | |
parent | f4579e2899df552ea0c1e2f68447fd64b0c38836 (diff) | |
download | qemu-2512a026fab8d526e623426a3002599a2de09d16.zip qemu-2512a026fab8d526e623426a3002599a2de09d16.tar.gz qemu-2512a026fab8d526e623426a3002599a2de09d16.tar.bz2 |
ui: rename cursor_{get->ref}, return it
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 <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'ui/cursor.c')
-rw-r--r-- | ui/cursor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/cursor.c b/ui/cursor.c index 31b09bf..6fe6799 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) |