diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-07-24 14:57:03 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-07-24 14:57:03 +0000 |
commit | 31bcc25fe93c3da7f7a4b32bddc88eb52dbe6df4 (patch) | |
tree | cee06aee86a5b0a68f551372ca6cc9d94cefd510 /rtcmdecode.c | |
parent | 4a3fcb00b93a9c8023912f9daf0931e1e3a496fa (diff) | |
download | gpsd-31bcc25fe93c3da7f7a4b32bddc88eb52dbe6df4.tar.gz |
More separation of the low-level decoder.
Diffstat (limited to 'rtcmdecode.c')
-rw-r--r-- | rtcmdecode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rtcmdecode.c b/rtcmdecode.c index 1af9953a..010639fc 100644 --- a/rtcmdecode.c +++ b/rtcmdecode.c @@ -30,7 +30,7 @@ int main(int argc, char **argv) { int c; struct gps_device_t device; - enum rtcmstat_t res; + enum isgpsstat_t res; off_t count; char buf[BUFSIZ]; bool striplines = false; @@ -61,7 +61,7 @@ int main(int argc, char **argv) (void)ungetc(c, stdin); } - rtcm_init(&device); + isgps_init(&device); count = 0; while ((c = getchar()) != EOF) { @@ -69,7 +69,7 @@ int main(int argc, char **argv) if (verbose >= RTCM_ERRLEVEL_BASE + 3) printf("%08lu: '%c' [%02x] -> %d\n", (unsigned long)count++, (isprint(c)?c:'.'), (unsigned)(c & 0xff), res); - if (res == RTCM_STRUCTURE) { + if (res == ISGPS_MESSAGE) { rtcm_dump(&device, buf, sizeof(buf)); (void)fputs(buf, stdout); } |