Commit 28b095b1 authored by Jussi Kukkonen's avatar Jussi Kukkonen

call to gpsd_open() was broken

parameter "server" is now NULL, that should work
parent a5f92504
......@@ -366,8 +366,8 @@ gboolean geoclue_position_shutdown(GeocluePosition *server, GError** error)
int main(int argc, char **argv)
//char* server = NULL;
char* port = DEFAULT_GPSD_PORT;
char* gps_server = NULL;
char* gps_port = DEFAULT_GPSD_PORT;
pthread_t th_gps;
g_type_init ();
......@@ -396,7 +396,8 @@ int main(int argc, char **argv)
server = GEOCLUE_POSITION(g_type_create_instance (geoclue_position_get_type()));
server->loop = g_main_loop_new(NULL,TRUE);
g_debug ("Starting GPSD\n");
server->gpsdata = gps_open(server, port);
server->gpsdata = gps_open (gps_server, gps_port);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment