From: Jonathan Lebon Date: Tue, 27 Oct 2020 15:57:00 +0000 (-0400) Subject: lib/fetcher-curl: Use G_SOURCE_REMOVE instead of FALSE X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~6^2~13^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=40edc33ef3dc623c7ef699b4065fd38614f68910;p=ostree.git lib/fetcher-curl: Use G_SOURCE_REMOVE instead of FALSE They're equivalent, though I prefer the former because it's more descriptive and it makes it really obvious that it's a `GSource` callback. --- diff --git a/src/libostree/ostree-fetcher-curl.c b/src/libostree/ostree-fetcher-curl.c index 129e6988..178cb5cd 100644 --- a/src/libostree/ostree-fetcher-curl.c +++ b/src/libostree/ostree-fetcher-curl.c @@ -433,7 +433,7 @@ timer_cb (gpointer data) if (fetcher->timer_event == orig_src) fetcher->timer_event = NULL; - return FALSE; + return G_SOURCE_REMOVE; } /* Update the event timer after curl_multi library calls */