From f3342d371ab64607fd17534e204264e81f6f2616 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 23 Jan 2008 20:05:50 +0200 Subject: [PATCH] Some fixes --- src/gps.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gps.c b/src/gps.c index 191007e..892b3a6 100644 --- a/src/gps.c +++ b/src/gps.c @@ -260,13 +260,14 @@ if (gps->io.type==GPS_IO_HILDON_DBUS && gps->io.rfcomm_req_proxy) { dbus_g_proxy_call(gps->io.rfcomm_req_proxy, BTCOND_RFCOMM_CANCEL_CONNECT_REQ, &error, G_TYPE_STRING, gps->io.address, G_TYPE_STRING, "SPP", G_TYPE_INVALID, G_TYPE_INVALID); error = NULL; dbus_g_proxy_call(gps->io.rfcomm_req_proxy, BTCOND_RFCOMM_DISCONNECT_REQ, &error,G_TYPE_STRING, gps->io.address, G_TYPE_STRING, "SPP", G_TYPE_INVALID, G_TYPE_INVALID); - } } #endif #ifdef WITH_BLUEZ_DBUS_BT if (gps->io.type==GPS_IO_BLUEZ_DBUS && gps->io.rfcomm_req_proxy) { - GError *error = NULL; + GError *error = NULL; + + } #endif @@ -400,7 +401,7 @@ switch (gps->io.type) { /* Set gpsd to NMEA mode */ if (gps->io.type==GPS_IO_GPSD) { GIOStatus status; - gint written; + gsize written; status=g_io_channel_write_chars(gps->io.channel, GPSD_NMEA, -1, &written, NULL); if (status!=G_IO_STATUS_NORMAL || written!=sizeof(GPSD_NMEA)) { g_printerr("Failed to set gpsd to NMEA mode\n"); -- 2.39.5