diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-03-06 19:02:35 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-03-06 19:02:35 +0000 |
commit | 877cd814cdef7fad0ecb0ae453a9a3970f8c1b7b (patch) | |
tree | 8522aedb7136a9f4b4f4e897912a57e4ae089338 /monitor_italk.c | |
parent | 3f1145637e2cd29c49b3bc1bc3ea62478b390137 (diff) | |
download | gpsd-877cd814cdef7fad0ecb0ae453a9a3970f8c1b7b.tar.gz |
Partial splint cleanup, and a fix for a real bug splint caught...
(reference to wrong variable).
Diffstat (limited to 'monitor_italk.c')
-rw-r--r-- | monitor_italk.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/monitor_italk.c b/monitor_italk.c index 9d9712fc..a6d963d2 100644 --- a/monitor_italk.c +++ b/monitor_italk.c @@ -115,10 +115,10 @@ static void display_itk_navfix(unsigned char *buf, size_t len){ latitude = (double)(getlesl(buf, 7 + 144)/1e7); longitude = (double)(getlesl(buf, 7 + 148)/1e7); - altitude = (double)(getlesl(buf, 7 + 152)/1e3); - climb = (double)(getlesl(buf, 7 + 206)/1e3); - speed = (double)(getleul(buf, 7 + 210)/1e3); - track = (double)(getleuw(buf, 7 + 214)/1e2); + altitude = (float)(getlesl(buf, 7 + 152)/1e3); + climb = (float)(getlesl(buf, 7 + 206)/1e3); + speed = (float)(getleul(buf, 7 + 210)/1e3); + track = (float)(getleuw(buf, 7 + 214)/1e2); hdop = (float)(getleuw(buf, 7 + 56)/100.0); gdop = (float)(getleuw(buf, 7 + 58)/100.0); @@ -201,16 +201,16 @@ static void display_itk_prnstatus(unsigned char *buf, size_t len) prn = (unsigned char)getleuw(buf, off+4)&0xff; el = (unsigned char)getlesw(buf, off+6)&0xff; az = (unsigned char)getlesw(buf, off+8)&0xff; - wmove(satwin, i+2, 4); - wprintw(satwin, "%3d %3d %2d %02d %04x %c", + (void)wmove(satwin, i+2, 4); + (void)wprintw(satwin, "%3d %3d %2d %02d %04x %c", prn, az, el, ss, fl, (fl & PRN_FLAG_USE_IN_NAV)? 'Y' : ' '); } for ( ; i < MAX_NR_VISIBLE_PRNS; i++){ - wmove(satwin, i+2, 4); - wprintw(satwin, " "); + (void)wmove(satwin, (int)i+2, 4); + (void)wprintw(satwin, " "); } - wnoutrefresh(satwin); + (void)wnoutrefresh(satwin); return; } @@ -242,7 +242,7 @@ static int italk_command(char line[] UNUSED) static void italk_wrap(void) { - delwin(satwin); + (void)delwin(satwin); return; } |