summaryrefslogtreecommitdiff
path: root/gpxlogger.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-23 15:45:54 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-23 15:45:54 +0000
commit2d130236d0dd5b52f652e257210d9f8ab9bb5933 (patch)
tree8018d4f9216dd6922c6d55ae17fb3fd7dd7ec718 /gpxlogger.c
parentc437f0c939ba9611fa01b1ba341a3fe03c6542fd (diff)
downloadgpsd-2d130236d0dd5b52f652e257210d9f8ab9bb5933.tar.gz
Parse WATCH responses in the client library. All regression tests pass.
Diffstat (limited to 'gpxlogger.c')
-rw-r--r--gpxlogger.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpxlogger.c b/gpxlogger.c
index 70341c3e..33aef2d7 100644
--- a/gpxlogger.c
+++ b/gpxlogger.c
@@ -264,7 +264,7 @@ static int dbus_mainloop(void)
**************************************************************************/
struct fixsource_t source;
-static int casoc = 0;
+static int lcasoc = 0;
static void process(struct gps_data_t *gpsdata,
char *buf UNUSED, size_t len UNUSED, int level UNUSED)
@@ -309,7 +309,7 @@ static int socket_mainloop(void)
exit(1);
}
- if (casoc)
+ if (lcasoc)
gps_query(gpsdata, "j1\n");
if (source.device != NULL)
gps_query(gpsdata, "f=%s\n", source.device);
@@ -372,8 +372,8 @@ int main (int argc, char** argv)
"WARNING: track timeout is an hour or more!\n");
break;
case 'j': /* set data smoothing */
- casoc = (unsigned int)atoi(optarg);
- casoc = casoc ? 1 : 0;
+ lcasoc = (unsigned int)atoi(optarg);
+ lcasoc = lcasoc ? 1 : 0;
break;
case 'V':
(void)fprintf(stderr, "SVN ID: $Id$ \n");