diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-03-06 20:08:13 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-03-06 20:08:13 +0000 |
commit | 43c81ec0819448b253832d831c9d56296db802b0 (patch) | |
tree | 2e610761cce6f525f5efd63f5c229796eaa3d2c1 /monitor_superstar2.c | |
parent | 877cd814cdef7fad0ecb0ae453a9a3970f8c1b7b (diff) | |
download | gpsd-43c81ec0819448b253832d831c9d56296db802b0.tar.gz |
This finishes cleanup of the splint type warnings...
...now to figure out what's going on with its storage-class complaints.
Diffstat (limited to 'monitor_superstar2.c')
-rw-r--r-- | monitor_superstar2.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/monitor_superstar2.c b/monitor_superstar2.c index 79714456..d74f3def 100644 --- a/monitor_superstar2.c +++ b/monitor_superstar2.c @@ -60,18 +60,22 @@ static void display_superstar2_svinfo(unsigned char *buf, size_t data_len) char el; unsigned short az; + /*@ +charint */ if ((porn = getub(buf, off) & 0x1f) == 0) porn = (getub(buf, off+3) >> 1) + 87; + /*@ -charint */ ss = getub(buf, off+4); el = getsb(buf, off+1); - az = (unsigned short)getub(buf, off+2) + - ((unsigned short)(getub(buf, off+3) & 0x1) << 1); + az = (unsigned short)(getub(buf, off+2) + + ((getub(buf, off+3) & 0x1) << 1)); fl = getub(buf, off) & 0xe0; (void)wmove(satwin, i+2, 4); + /*@ +charint */ (void)wprintw(satwin, "%3u %3d %2d %02d %02x %c", porn, az, el, ss, fl, ((fl & 0x60) == 0x60)? 'Y' : ' '); + /*@ -charint */ } (void)wnoutrefresh(satwin); return; |