summaryrefslogtreecommitdiff
path: root/driver_superstar2.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-27 08:17:53 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-27 08:17:53 -0400
commit95e1dc568463108afaa55d7afaa3dda50e93b45a (patch)
treef6bfb99d1b174e0a4d9c2485dcb21e83483ae8dc /driver_superstar2.c
parent05806755dbd7d671201df03194ddfebca1553a62 (diff)
downloadgpsd-95e1dc568463108afaa55d7afaa3dda50e93b45a.tar.gz
Structure member name change: packet -> lexer. No logic changes.
All regression tests pass.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r--driver_superstar2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c
index 9db21e02..51a06044 100644
--- a/driver_superstar2.c
+++ b/driver_superstar2.c
@@ -473,12 +473,12 @@ static void superstar2_event_hook(struct gps_device_t *session, event_t event)
*/
static gps_mask_t superstar2_parse_input(struct gps_device_t *session)
{
- if (session->packet.type == SUPERSTAR2_PACKET) {
- return superstar2_dispatch(session, session->packet.outbuffer,
- session->packet.length);;
+ if (session->lexer.type == SUPERSTAR2_PACKET) {
+ return superstar2_dispatch(session, session->lexer.outbuffer,
+ session->lexer.length);;
#ifdef NMEA_ENABLE
- } else if (session->packet.type == NMEA_PACKET) {
- return nmea_parse((char *)session->packet.outbuffer, session);
+ } else if (session->lexer.type == NMEA_PACKET) {
+ return nmea_parse((char *)session->lexer.outbuffer, session);
#endif /* NMEA_ENABLE */
} else
return 0;