diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-02-04 06:24:37 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-02-04 06:24:37 -0500 |
commit | eac0d851d8d2651266eb51370057412ce6cc0f16 (patch) | |
tree | 250b8cd728dc26e91c377129a236de10e5d2ff91 /monitor_ubx.c | |
parent | 70fff5a3b7991b8a35dc26b946545c8c2bb0f9cf (diff) | |
download | gpsd-eac0d851d8d2651266eb51370057412ce6cc0f16.tar.gz |
splint simplification and cleanup.
Diffstat (limited to 'monitor_ubx.c')
-rw-r--r-- | monitor_ubx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor_ubx.c b/monitor_ubx.c index dc6adbc2..6acd897f 100644 --- a/monitor_ubx.c +++ b/monitor_ubx.c @@ -93,8 +93,8 @@ static void display_nav_svinfo(unsigned char *buf, size_t data_len) prn = (unsigned char)getub(buf, off + 1); fl = (unsigned short)getleu16(buf, off + 2); ss = (unsigned char)getub(buf, off + 4); - el = getsb(buf, off + 5); - az = getles16(buf, off + 6); + el = (char)getsb(buf, off + 5); + az = (short)getles16(buf, off + 6); (void)wmove(satwin, (int)(i + 2), 4); (void)wprintw(satwin, "%3d %3d %3d %2d %04x %c", prn, az, el, ss, fl, (fl & UBX_SAT_USED) ? 'Y' : ' '); |