]> err.no Git - mapper/commitdiff
Fix silly typos
authorKaj-Michael Lang <milang@tal.org>
Fri, 7 Mar 2008 11:08:34 +0000 (13:08 +0200)
committerKaj-Michael Lang <milang@tal.org>
Fri, 7 Mar 2008 11:08:34 +0000 (13:08 +0200)
src/gps.c

index b72b4be6d1e256b86c343fc374b5bf9bdd5c5811..80bfd38eee72326c108a006a012bdd809ef96057 100644 (file)
--- a/src/gps.c
+++ b/src/gps.c
@@ -515,12 +515,12 @@ switch (gps->io.type) {
                        /* 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");