diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-07-16 15:30:18 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-07-16 15:30:18 +0000 |
commit | d1857588cfcf0644fd84467e1b4853c0e45946a2 (patch) | |
tree | 9bbacd924d5732de4c52b019041e05c3ef42f5a2 /rtcmdecode.c | |
parent | 364d17cf1813d46967d323d38f4657833b2bd050 (diff) | |
download | gpsd-d1857588cfcf0644fd84467e1b4853c0e45946a2.tar.gz |
Stage one of making the RTCM decoder an ordinary driver. Merge the RTCM
decoding context into the gps_device_t structure.
Diffstat (limited to 'rtcmdecode.c')
-rw-r--r-- | rtcmdecode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rtcmdecode.c b/rtcmdecode.c index b41e147b..cd4703d6 100644 --- a/rtcmdecode.c +++ b/rtcmdecode.c @@ -28,7 +28,7 @@ void gpsd_report(int errlevel, const char *fmt, ... ) int main(int argc, char **argv) { int c; - struct rtcm_t ctxbuf; + struct gps_device_t device; enum rtcmstat_t res; char buf[BUFSIZ]; @@ -47,12 +47,12 @@ int main(int argc, char **argv) argc -= optind; argv += optind; - rtcm_init(&ctxbuf); + rtcm_init(&device); while ((c = getchar()) != EOF) { - res = rtcm_decode(&ctxbuf, (unsigned int)c); + res = rtcm_decode(&device, (unsigned int)c); if (res == RTCM_STRUCTURE) { - rtcm_dump(&ctxbuf, buf, sizeof(buf)); + rtcm_dump(&device, buf, sizeof(buf)); (void)fputs(buf, stdout); } } |