lib/fetcher-curl: Use G_SOURCE_REMOVE instead of FALSE
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 27 Oct 2020 15:57:00 +0000 (11:57 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Tue, 27 Oct 2020 15:57:00 +0000 (11:57 -0400)
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.

src/libostree/ostree-fetcher-curl.c

index 129e6988e6a8263f52b087b5a4fe8d5948f54161..178cb5cd43c5df0c4fcb9c63189c0c7978d3724b 100644 (file)
@@ -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 */