summaryrefslogtreecommitdiff
path: root/monitor_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-04 06:24:37 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-04 06:24:37 -0500
commiteac0d851d8d2651266eb51370057412ce6cc0f16 (patch)
tree250b8cd728dc26e91c377129a236de10e5d2ff91 /monitor_ubx.c
parent70fff5a3b7991b8a35dc26b946545c8c2bb0f9cf (diff)
downloadgpsd-eac0d851d8d2651266eb51370057412ce6cc0f16.tar.gz
splint simplification and cleanup.
Diffstat (limited to 'monitor_ubx.c')
-rw-r--r--monitor_ubx.c4
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' : ' ');