diff options
author | Teemu Ikonen <tpikonen@mailbox.org> | 2021-11-03 22:33:00 +0200 |
---|---|---|
committer | Teemu Ikonen <tpikonen@mailbox.org> | 2021-11-07 16:45:01 +0200 |
commit | 693cd007aec57706e4e16225f99c6e1d5d3d996c (patch) | |
tree | 78ed674719c1eb1b6b0d9a7d1d51137b9db77db5 /src/gclue-modem-gps.c | |
parent | 4542856d84a313217a1c3f0024599d267fe1ef04 (diff) | |
download | geoclue-693cd007aec57706e4e16225f99c6e1d5d3d996c.tar.gz |
Fix return values in GClueLocationSource start() implementations
Return the correct enum also in g_return_val_if_fail calls.
These were missed in in commit 2d1968f84fa81 (merge request !94).
Diffstat (limited to 'src/gclue-modem-gps.c')
-rw-r--r-- | src/gclue-modem-gps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gclue-modem-gps.c b/src/gclue-modem-gps.c index 9e073af..4dfa9b7 100644 --- a/src/gclue-modem-gps.c +++ b/src/gclue-modem-gps.c @@ -240,7 +240,8 @@ gclue_modem_gps_start (GClueLocationSource *source) GClueModemGPSPrivate *priv; GClueLocationSourceStartResult base_result; - g_return_val_if_fail (GCLUE_IS_LOCATION_SOURCE (source), FALSE); + g_return_val_if_fail (GCLUE_IS_LOCATION_SOURCE (source), + GCLUE_LOCATION_SOURCE_START_RESULT_FAILED); priv = GCLUE_MODEM_GPS (source)->priv; base_class = GCLUE_LOCATION_SOURCE_CLASS (gclue_modem_gps_parent_class); |