summaryrefslogtreecommitdiff
path: root/monitor_superstar2.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-10-26 10:08:50 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-10-26 10:08:50 +0000
commit7c9d538c629e046924e96974e67732a01c706674 (patch)
tree995419960ad63afdf2e410aa41b9f1b272206cc8 /monitor_superstar2.c
parent7edaec7a7587f050266eb7280270e23ba9e2579f (diff)
downloadgpsd-7c9d538c629e046924e96974e67732a01c706674.tar.gz
In the wake of the change to use only C99 fixed-length types...
...splint needs some pacifying. This is part 1. All regressions pass.
Diffstat (limited to 'monitor_superstar2.c')
-rw-r--r--monitor_superstar2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/monitor_superstar2.c b/monitor_superstar2.c
index d690822e..50e64ff6 100644
--- a/monitor_superstar2.c
+++ b/monitor_superstar2.c
@@ -63,15 +63,15 @@ static void display_superstar2_svinfo(unsigned char *buf, size_t data_len)
unsigned short az;
/*@ +charint */
- if ((porn = getub(buf, off) & 0x1f) == 0)
- porn = (getub(buf, off+3) >> 1) + 87;
+ if ((porn = (unsigned char)getub(buf, off) & 0x1f) == 0)
+ porn = ((unsigned char)getub(buf, off+3) >> 1) + 87;
/*@ -charint */
- ss = getub(buf, off+4);
+ ss = (unsigned char)getub(buf, off+4);
el = getsb(buf, off+1);
az = (unsigned short)(getub(buf, off+2) +
((getub(buf, off+3) & 0x1) << 1));
- fl = getub(buf, off) & 0xe0;
+ fl = (unsigned char)getub(buf, off) & 0xe0;
(void)wmove(satwin, i+2, 4);
/*@ +charint */
(void)wprintw(satwin, "%3u %3d %2d %02d %02x %c",