]> err.no Git - mapper/blobdiff - src/maemo-osso.c
Add header and cast properly.
[mapper] / src / maemo-osso.c
index 97d16b05c26ebffd3d6bf8f705ff39d2170f3fda..9f6354bfdf35388822f1dfa4cc6a0f952541278e 100644 (file)
@@ -74,7 +74,7 @@ if (state->system_inactivity_ind) {
                                gconf_client_clear_cache(gconf_client);
                                gps_conn_set_state(_gps, RCVR_OFF);
                                gps_disconnect(_gps);
-                               track_add(0, FALSE);
+                               track_add(NULL);
                                /* Pretend autoroute is in progress to avoid download. */
                                if (_autoroute_data.enabled)
                                        _autoroute_data.in_progress = TRUE;
@@ -92,8 +92,8 @@ if (state->system_inactivity_ind) {
        poi_icon_hash_clear();
 } else {
        if (_gps->io.conn == RCVR_OFF && _enable_gps) {
-               gps_conn_set_state(gps, RCVR_DOWN);
-               gps_connect_later(gps);
+               gps_conn_set_state(_gps, RCVR_DOWN);
+               gps_connect_later(_gps);
                if (_autoroute_data.enabled)
                        _autoroute_data.in_progress = TRUE;
        }