/* Force correct gpsd binary */
setenv ("GPSD_PROG", "/usr/sbin/gpsd", 1);
- memset(&ctx, 0, sizeof(ctx))
- memset(&errbuf, 0, sizeof(errbuf))
+ memset(&ctx, 0, sizeof(ctx));
+ memset(&errbuf, 0, sizeof(errbuf));
errno=0;
- if (gpsbt_start(NULL, 0, 0, 0, errbuf, sizeof(errbuf), 0, &ctx)!=0)
- g_warning("Failed to start gpsd: %d (%s) %s\n", errno, strerror(errno), errbuff);
+ if (gpsbt_start(NULL, 0, 0, 0, errbuf, sizeof(errbuf), 0, &ctx)!=0) {
+ g_warning("Failed to start gpsd: %d (%s) %s\n", errno, strerror(errno), errbuf);
return FALSE;
} else {
g_debug("Waiting for gpsd");