aboutsummaryrefslogtreecommitdiff
path: root/net/vhost-user.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-07-05 13:22:10 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-08-31 19:47:43 +0200
commit53c7c924228a9227bfdbb4d2f92e657cb805a37d (patch)
treeaefea1f72addbc0c212bfc834414e2f98f211c0e /net/vhost-user.c
parentb3a1090fe55669e4ce19649525745ce551232a43 (diff)
downloadqemu-53c7c924228a9227bfdbb4d2f92e657cb805a37d.zip
qemu-53c7c924228a9227bfdbb4d2f92e657cb805a37d.tar.gz
qemu-53c7c924228a9227bfdbb4d2f92e657cb805a37d.tar.bz2
hw/char: Have FEWatchFunc handlers return G_SOURCE_CONTINUE/REMOVE
GLib recommend to use G_SOURCE_REMOVE / G_SOURCE_CONTINUE for GSourceFunc callbacks. Our FEWatchFunc is a GSourceFunc returning such value. Use such definitions which are "more memorable" [*]. [*] https://docs.gtk.org/glib/callback.SourceFunc.html#return-value Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20230705133139.54419-5-philmd@linaro.org>
Diffstat (limited to 'net/vhost-user.c')
-rw-r--r--net/vhost-user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/vhost-user.c b/net/vhost-user.c
index 5993e4a..1255551 100644
--- a/net/vhost-user.c
+++ b/net/vhost-user.c
@@ -239,7 +239,7 @@ static gboolean net_vhost_user_watch(void *do_not_use, GIOCondition cond,
qemu_chr_fe_disconnect(&s->chr);
- return TRUE;
+ return G_SOURCE_CONTINUE;
}
static void net_vhost_user_event(void *opaque, QEMUChrEvent event);